test(components): [input] use formatter , event val check (#20031)

Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
sea
2025-03-06 09:44:45 +08:00
committed by GitHub
parent b46fc201e4
commit 7acf11ec37
2 changed files with 20 additions and 4 deletions

View File

@ -391,8 +391,8 @@ const handleInput = async (event: Event) => {
let { value } = event.target as TargetElement
if (props.formatter) {
value = props.parser ? props.parser(value) : value
if (props.formatter && props.parser) {
value = props.parser(value)
}
// should not emit input during composition