fix(runtime-dom): should remove attribute when binding null to value (#3564)
This commit is contained in:
@@ -33,6 +33,9 @@ export function patchDOMProp(
|
||||
if (el.value !== newValue) {
|
||||
el.value = newValue
|
||||
}
|
||||
if (value == null) {
|
||||
el.removeAttribute('value')
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user