#6082
This commit is contained in:
mo.duan 2019-09-04 16:07:40 +08:00
parent d7d5bda587
commit 6a7b6aab36

View file

@ -227,8 +227,9 @@
this.inputLength = this.$refs.input.value.length * 12 + 20; this.inputLength = this.$refs.input.value.length * 12 + 20;
this.$emit('on-keydown'); this.$emit('on-keydown');
}, },
handleInputDelete () { handleInputDelete (e) {
if (this.multiple && this.selectedMultiple.length && this.query === '') { const targetValue = e.target.value;
if (this.multiple && this.selectedMultiple.length && this.query === '' && targetValue === '' ) {
this.removeTag(this.selectedMultiple[this.selectedMultiple.length - 1]); this.removeTag(this.selectedMultiple[this.selectedMultiple.length - 1]);
} }
}, },