We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
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