From 75f895705a62adf357c65c151961feebba8a1d1b Mon Sep 17 00:00:00 2001 From: xiawei07 Date: Tue, 10 Sep 2024 16:32:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BA=A7=E8=81=94=E5=A4=9A=E9=80=89?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=88=A0=E9=99=A4=E6=8B=BC=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cascader/src/cascader.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cascader/src/cascader.vue b/packages/cascader/src/cascader.vue index 0aad54baf1e..768e010e443 100644 --- a/packages/cascader/src/cascader.vue +++ b/packages/cascader/src/cascader.vue @@ -62,7 +62,7 @@ :placeholder="presentTags.length ? '' : placeholder" @input="e => handleInput(inputValue, e)" @click.stop="toggleDropDownVisible(true)" - @keydown.delete="handleDelete"> + @keydown.delete="e => handleDelete(e)"> @@ -588,7 +588,8 @@ export default { break; } }, - handleDelete() { + handleDelete(event) { + if (event.isComposing) return; const { inputValue, pressDeleteCount, presentTags } = this; const lastIndex = presentTags.length - 1; const lastTag = presentTags[lastIndex];