fix #926
This commit is contained in:
parent
79ed7e7979
commit
aaf8084198
2 changed files with 3 additions and 7 deletions
|
@ -34,7 +34,7 @@
|
|||
spellcheck="false"
|
||||
@keydown="resetInputState"
|
||||
@keydown.delete="handleInputDelete"
|
||||
@keydown.enter="handleInputEnter"
|
||||
@keydown.enter.prevent.stop="handleInputEnter"
|
||||
@focus="onInputFocus"
|
||||
@blur="onInputBlur"
|
||||
|
||||
|
|
|
@ -800,12 +800,8 @@
|
|||
label: query,
|
||||
tag: undefined
|
||||
};
|
||||
if (this.multiple) {
|
||||
this.onOptionClick(option);
|
||||
} else {
|
||||
// 单选时如果不在 nextTick 里执行,无法赋值
|
||||
this.$nextTick(() => this.onOptionClick(option));
|
||||
}
|
||||
// 单选(和多选,#926)时如果不在 nextTick 里执行,无法赋值
|
||||
this.$nextTick(() => this.onOptionClick(option));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue