diff --git a/src/components/select/select-head.vue b/src/components/select/select-head.vue index 92d9d74..9bb8e42 100644 --- a/src/components/select/select-head.vue +++ b/src/components/select/select-head.vue @@ -22,7 +22,7 @@ @keydown="resetInputState" @keydown.delete="handleInputDelete" @focus="onInputFocus" - @blur="onInputFocus" + @blur="onInputBlur" ref="input"> @@ -146,8 +146,12 @@ } }, methods: { - onInputFocus(e){ - this.$emit(e.type === 'focus' ? 'on-input-focus' : 'on-input-blur'); + onInputFocus(){ + this.$emit('on-input-focus'); + }, + onInputBlur () { + if (!this.values.length) this.query = ''; // #5155 + this.$emit('on-input-blur'); }, removeTag (value) { if (this.disabled) return false; -- libgit2 0.21.4