diff --git a/packages/runtime-dom/src/modules/props.ts b/packages/runtime-dom/src/modules/props.ts index 0e87ffcd..fbaaac2c 100644 --- a/packages/runtime-dom/src/modules/props.ts +++ b/packages/runtime-dom/src/modules/props.ts @@ -18,5 +18,10 @@ export function patchDOMProp( // non-string values will be stringified. el._value = value } - el[key] = value == null ? '' : value + if (value === '' && typeof el[key] === 'boolean') { + // e.g.