From 368a42f61e5b2f4c4bc4bbbebbb636501dfa1626 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sun, 19 Mar 2023 11:54:10 +0800 Subject: [PATCH] feat: update judgment logic --- packages/components/input/src/input.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/input/src/input.vue b/packages/components/input/src/input.vue index e631e75314..aa7df424a0 100644 --- a/packages/components/input/src/input.vue +++ b/packages/components/input/src/input.vue @@ -379,7 +379,7 @@ const handleInput = async (event: Event) => { if (props.countGraphemes && isFunction(props.countGraphemes)) { const graphemes = props.countGraphemes(value) - if (graphemes > Number(maxlength.value)) { + if (graphemes > Number(maxlength.value) && saveValue.value) { value = saveValue.value } }