fix #4786
This commit is contained in:
parent
55649319b5
commit
2b6e6d4c90
1 changed files with 5 additions and 2 deletions
|
@ -294,8 +294,11 @@
|
|||
this.$refs.input.currentValue = '';
|
||||
const oldVal = JSON.stringify(this.currentValue);
|
||||
this.currentValue = item.value.split(',');
|
||||
// use setTimeout for #4786, can not use nextTick, because @on-find-selected use nextTick
|
||||
setTimeout(() => {
|
||||
this.emitValue(this.currentValue, oldVal);
|
||||
this.handleClose();
|
||||
}, 0);
|
||||
},
|
||||
handleFocus () {
|
||||
this.$refs.input.focus();
|
||||
|
|
Loading…
Add table
Reference in a new issue