Two components are involved: DashboardView and DashboardOrderCard. My goal is to prevent the mousedown event from being emitted when either the date picker is clicked or an option is selected from the DashboardOrderCard. How can I accomplish this? Below is the code for both components.
DashboardView.vue
<div
class="dashboard-view"
v-bind="$attrs"
>
<div class="pinned-orders">
<DashboardOrderCard
v-for="(order, index) in pinnedOrders"
:key="order.id"
:id="'order-' + order.id"
:order="order"
@mousedown="displayProgress(order)"
@unpin-order="unpinOrder(index)"
/>
</div>
</div>
DashboardOrderCard.vue
<el-card>
<div class="body-wrapper">
<div class="due-date-wrapper">
<el-date-picker
class="date-picker"
v-model="currentDueDate"
format="DD-MM-YYYY"
:readonly="isCurrentUserSupervisor === false"
/>
</div>
<OrderStatusSelect
class="status-select"
v-model:status="currentStatus"
/>
</div>
</el-card>
I am utilizing Vue3 with <script setup>
and Typescript.