mirror of https://github.com/ElemeFE/element
fix dropdown menu visible bug
parent
9cec78ce04
commit
33c99d8ab8
|
@ -11,7 +11,7 @@
|
|||
|
||||
methods: {
|
||||
handleClick(e) {
|
||||
this.dispatch('ElDropdownMenu', 'visible', [false]);
|
||||
this.dispatch('ElDropdown', 'visible', [false]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
export default {
|
||||
name: 'ElDropdown',
|
||||
|
||||
componentName: 'ElDropdown',
|
||||
|
||||
mixins: [Emitter],
|
||||
|
||||
directives: { Clickoutside },
|
||||
|
@ -31,6 +33,7 @@
|
|||
},
|
||||
|
||||
mounted() {
|
||||
this.$on('visible', value => { this.visible = value; });
|
||||
this.initEvent();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue