feat: update judgment logic

This commit is contained in:
btea
2023-03-19 11:54:10 +08:00
parent e2c117d734
commit 368a42f61e

View File

@@ -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
}
}