This commit is contained in:
梁灏 2021-09-07 17:17:01 +08:00
parent 79ed7e7979
commit aaf8084198
2 changed files with 3 additions and 7 deletions

View file

@ -34,7 +34,7 @@
spellcheck="false"
@keydown="resetInputState"
@keydown.delete="handleInputDelete"
@keydown.enter="handleInputEnter"
@keydown.enter.prevent.stop="handleInputEnter"
@focus="onInputFocus"
@blur="onInputBlur"

View file

@ -800,14 +800,10 @@
label: query,
tag: undefined
};
if (this.multiple) {
this.onOptionClick(option);
} else {
// nextTick
// #926 nextTick
this.$nextTick(() => this.onOptionClick(option));
}
}
}
},
watch: {
value(value){