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 @@ ...@@ -100,8 +100,10 @@
this.$el.style.backgroundColor = this.backgroundColor; this.$el.style.backgroundColor = this.backgroundColor;
}, },
handleClick() { handleClick() {
if (!this.disabled) {
this.dispatch('ElMenu', 'item-click', this); this.dispatch('ElMenu', 'item-click', this);
this.$emit('click', this); this.$emit('click', this);
};
} }
}, },
created() { 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