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"
|
spellcheck="false"
|
||||||
@keydown="resetInputState"
|
@keydown="resetInputState"
|
||||||
@keydown.delete="handleInputDelete"
|
@keydown.delete="handleInputDelete"
|
||||||
@keydown.enter="handleInputEnter"
|
@keydown.enter.prevent.stop="handleInputEnter"
|
||||||
@focus="onInputFocus"
|
@focus="onInputFocus"
|
||||||
@blur="onInputBlur"
|
@blur="onInputBlur"
|
||||||
|
|
||||||
|
|
|
@ -800,14 +800,10 @@
|
||||||
label: query,
|
label: query,
|
||||||
tag: undefined
|
tag: undefined
|
||||||
};
|
};
|
||||||
if (this.multiple) {
|
// 单选(和多选,#926)时如果不在 nextTick 里执行,无法赋值
|
||||||
this.onOptionClick(option);
|
|
||||||
} else {
|
|
||||||
// 单选时如果不在 nextTick 里执行,无法赋值
|
|
||||||
this.$nextTick(() => this.onOptionClick(option));
|
this.$nextTick(() => this.onOptionClick(option));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
value(value){
|
value(value){
|
||||||
|
|
Loading…
Add table
Reference in a new issue