mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
feat: update judgment logic
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user