fix(components): [input-number] Chinese can be displayed in the numeric input box (#19018)

This commit is contained in:
雨溪
2024-11-28 21:11:46 +08:00
committed by GitHub
parent 5a87198d08
commit f7ffee32d9

View File

@@ -292,6 +292,9 @@ const handleFocus = (event: MouseEvent | FocusEvent) => {
const handleBlur = (event: MouseEvent | FocusEvent) => {
data.userInput = null
if (data.currentValue === null && input.value?.input) {
input.value.input.value = ''
}
emit('blur', event)
if (props.validateEvent) {
formItem?.validate?.('blur').catch((err) => debugWarn(err))