From 57a5f1f1cb42fcf7bcfa01844388296a46a3d10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Tue, 15 Oct 2019 11:28:23 +0800 Subject: [PATCH] fix https://github.com/iview/iview/issues/6082 --- src/components/select/select-head.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/select/select-head.vue b/src/components/select/select-head.vue index 33e29b64..12869f70 100644 --- a/src/components/select/select-head.vue +++ b/src/components/select/select-head.vue @@ -237,8 +237,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]); } },