This commit is contained in:
梁灏 2020-06-28 09:14:35 +08:00
parent f6fe4dae70
commit cf930e3e56

View file

@ -480,6 +480,8 @@
} }
}, },
clearSingleSelect(){ // PUBLIC API clearSingleSelect(){ // PUBLIC API
// fix #446
if (!this.multiple) this.$emit('input', '');
this.$emit('on-clear'); this.$emit('on-clear');
this.hideMenu(); this.hideMenu();
if (this.clearable) this.reset(); if (this.clearable) this.reset();