Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 04ec06d

Browse filesBrowse 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
Copy full SHA for 04ec06d

File tree

1 file changed

+6
-1
lines changed
Filter options

1 file changed

+6
-1
lines changed

‎src/components/dropdown/CDropdown.vue

Copy file name to clipboardExpand all lines: src/components/dropdown/CDropdown.vue
+6-1Lines changed: 6 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.