Skip to content

Commit

Permalink
refactor: change CDropdown closing event name
Browse files Browse the repository at this point in the history
  • Loading branch information
woothu committed Mar 6, 2020
1 parent a1d5a15 commit 26c2f7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/dropdown/CDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default {
}
},
mounted () {
this.$on('dropdown-item-click', this.hide)
this.$on('dropdown-close', this.hide)
},
methods: {
checkClick (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/dropdown/CDropdownItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 26c2f7d

Please sign in to comment.