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;
|
this.$el.style.backgroundColor = this.backgroundColor;
|
||||||
},
|
},
|
||||||
handleClick() {
|
handleClick() {
|
||||||
this.dispatch('ElMenu', 'item-click', this);
|
if (!this.disabled) {
|
||||||
this.$emit('click', this);
|
this.dispatch('ElMenu', 'item-click', this);
|
||||||
|
this.$emit('click', this);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
Loading…
Reference in New Issue