#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.$emit('on-keydown');
},
handleInputDelete () {
if (this.multiple && this.selectedMultiple.length && this.query === '') {
handleInputDelete (e) {
const targetValue = e.target.value;
if (this.multiple && this.selectedMultiple.length && this.query === '' && targetValue === '' ) {
this.removeTag(this.selectedMultiple[this.selectedMultiple.length - 1]);
}
},