8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bef15f commit ff130c4Copy full SHA for ff130c4
packages/runtime-dom/src/modules/props.ts
@@ -39,7 +39,8 @@ export function patchDOMProp(
39
el._value = value
40
// #4956: <option> value will fallback to its text content so we need to
41
// compare against its attribute value instead.
42
- const oldValue = tag === 'OPTION' ? el.getAttribute('value') : el.value
+ const oldValue =
43
+ tag === 'OPTION' ? el.getAttribute('value') || '' : el.value
44
const newValue = value == null ? '' : value
45
if (oldValue !== newValue) {
46
el.value = newValue
0 commit comments