Commit 714a9f01 authored by Anatoly Kolesov's avatar Anatoly Kolesov Committed by 杨奕

Menu: disabled menu shouldn't dispatch click event (#9442)

parent 404bde57
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment