parent
d7d5bda587
commit
6a7b6aab36
1 changed files with 3 additions and 2 deletions
|
@ -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]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue