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

pull/8693/merge
Anatoly Kolesov 2018-01-25 05:30:15 +03:00 committed by 杨奕
parent 404bde5746
commit 714a9f0192
1 changed files with 4 additions and 2 deletions

View File

@ -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() {