Skip to content

Commit 04ec06d

Browse files
committed
Merge branch 'patch-dropdown-issue-134' of https://github.com/rabrowne85/coreui-vue into rabrowne85-patch-dropdown-issue-134
2 parents d1198cd + adba664 commit 04ec06d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/dropdown/CDropdown.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<slot name="toggler">
99
<component
1010
:is="togglerTag"
11-
v-on="{ click: splittedToggler ? hide : toggle }"
11+
v-on="{ click: splittedToggler ? splitButtonPress : toggle }"
1212
:class="computedTogglerClasses"
1313
v-bind="splittedToggler ? '' : togglerAttrs"
1414
>
@@ -120,6 +120,11 @@ export default {
120120
this.visible = false
121121
},
122122
123+
splitButtonPress () {
124+
this.visible = false
125+
this.$emit('splitButtonPress')
126+
},
127+
123128
toggle (e) {
124129
e.preventDefault()
125130
this.visible = !this.visible

0 commit comments

Comments
 (0)