mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-17 13:01:46 +08:00
test(components): [input] use formatter
, event val check (#20031)
Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user