We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1bad30 commit 25eebdbCopy full SHA for 25eebdb
src/components/Dropdown/CDropdown.vue
@@ -3,6 +3,7 @@
3
:is="inNav ? 'li' : 'div'"
4
:class="computedDropdownClasses"
5
v-on-clickaway="hide"
6
+ @click="checkClick($event)"
7
>
8
<slot name="toggler">
9
<component
@@ -99,6 +100,15 @@ export default {
99
100
}
101
},
102
methods: {
103
+ checkClick (e) {
104
+ if (
105
+ this.$scopedSlots.toggler &&
106
+ this.$el.firstElementChild.contains(e.target)
107
+ ) {
108
+ this.toggle(e)
109
+ }
110
+ },
111
+
112
hide () {
113
this.visible = false
114
0 commit comments