mirror of https://github.com/ElemeFE/element
Menu: disabled menu shouldn't dispatch click event (#9442)
parent
404bde5746
commit
714a9f0192
|
@ -100,8 +100,10 @@
|
|||
this.$el.style.backgroundColor = this.backgroundColor;
|
||||
},
|
||||
handleClick() {
|
||||
this.dispatch('ElMenu', 'item-click', this);
|
||||
this.$emit('click', this);
|
||||
if (!this.disabled) {
|
||||
this.dispatch('ElMenu', 'item-click', this);
|
||||
this.$emit('click', this);
|
||||
};
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
Loading…
Reference in New Issue