diff --git a/src/components/dropdown/CDropdown.vue b/src/components/dropdown/CDropdown.vue index 48232204..9364a3eb 100644 --- a/src/components/dropdown/CDropdown.vue +++ b/src/components/dropdown/CDropdown.vue @@ -104,7 +104,7 @@ export default { } }, mounted () { - this.$on('dropdown-item-click', this.hide) + this.$on('dropdown-close', this.hide) }, methods: { checkClick (e) { diff --git a/src/components/dropdown/CDropdownItem.vue b/src/components/dropdown/CDropdownItem.vue index 2c12473f..92d1afbf 100644 --- a/src/components/dropdown/CDropdownItem.vue +++ b/src/components/dropdown/CDropdownItem.vue @@ -11,7 +11,7 @@ export default { props: this._props, staticClass: 'dropdown-item', attrs: { role: 'menuitem' }, - on: { click: () => this.$parent.$emit('dropdown-item-click') } + on: { click: () => this.$parent.$emit('dropdown-close') } }, this.$slots.default )