This commit is contained in:
梁灏 2021-09-07 17:28:34 +08:00
parent 0824e6f0ad
commit d387c5a477

View file

@ -34,7 +34,7 @@
spellcheck="false" spellcheck="false"
@keydown="resetInputState" @keydown="resetInputState"
@keydown.delete="handleInputDelete" @keydown.delete="handleInputDelete"
@keydown.enter.prevent.stop="handleInputEnter" @keydown.enter="handleInputEnter"
@focus="onInputFocus" @focus="onInputFocus"
@blur="onInputBlur" @blur="onInputBlur"
@ -243,8 +243,10 @@
this.removeTag(this.selectedMultiple[this.selectedMultiple.length - 1]); this.removeTag(this.selectedMultiple[this.selectedMultiple.length - 1]);
} }
}, },
handleInputEnter () { handleInputEnter (e) {
this.$emit('on-enter'); this.$emit('on-enter');
// #926
if (this.showCreateItem) e.stopPropagation();
}, },
onHeaderClick(e){ onHeaderClick(e){
if (this.filterable && e.target === this.$el){ if (this.filterable && e.target === this.$el){