fix(components): [input] formatted values are out of sync (#9501)

Co-authored-by: RealityBoy <1923740402@qq.com>
This commit is contained in:
Xc
2022-08-31 13:45:38 +08:00
committed by GitHub
parent 0373b01940
commit fa312f0b85

View File

@ -386,7 +386,10 @@ const handleInput = async (event: Event) => {
// hack for https://github.com/ElemeFE/element/issues/8548
// should remove the following line when we don't support IE
if (value === nativeInputValue.value) return
if (value === nativeInputValue.value) {
setNativeInputValue()
return
}
emit(UPDATE_MODEL_EVENT, value)
emit('input', value)