Skip to content

Commit

Permalink
Fixed bug with clicking on label of multiselect instead of the checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
egauzens committed Sep 3, 2024
1 parent 0f0798a commit 375f2f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MultiSelect.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<div v-if="isFilterApplied" class="multilevel-select-filter">
<filter-applied height="20" width="20"></filter-applied>
<filter-applied :height=20 :width=20></filter-applied>
<div class="placeholder-text">Filter applied</div>
</div>
<div v-else class="multilevel-select-filter">
Expand All @@ -17,7 +17,7 @@
ref="cascader"
>
<template v-slot="{ node, data }">
<span :class="`${node.isLeaf ? 'leaf-node-label' : ''}`" @click="labelClicked(node)">{{ data.label }}</span>
<span :class="`${node.isLeaf ? 'leaf-node-label' : ''}`">{{ data.label }}</span>
<span v-if="!node.isLeaf && numFiltersApplied(data) != 0"> ({{ numFiltersApplied(data) }}) </span>
</template>
</el-cascader>
Expand Down

0 comments on commit 375f2f8

Please sign in to comment.