Skip to content

Commit 26c2f7d

Browse files
committed
refactor: change CDropdown closing event name
1 parent a1d5a15 commit 26c2f7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/dropdown/CDropdown.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default {
104104
}
105105
},
106106
mounted () {
107-
this.$on('dropdown-item-click', this.hide)
107+
this.$on('dropdown-close', this.hide)
108108
},
109109
methods: {
110110
checkClick (e) {

src/components/dropdown/CDropdownItem.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
props: this._props,
1212
staticClass: 'dropdown-item',
1313
attrs: { role: 'menuitem' },
14-
on: { click: () => this.$parent.$emit('dropdown-item-click') }
14+
on: { click: () => this.$parent.$emit('dropdown-close') }
1515
},
1616
this.$slots.default
1717
)

0 commit comments

Comments
 (0)