Skip to content

Commit f8f5d23

Browse files
committed
fix(runtime-dom): handle undefined values in v-html
1 parent fd5c001 commit f8f5d23

File tree

1 file changed

+1
-1
lines changed
  • packages/runtime-dom/src/modules

1 file changed

+1
-1
lines changed

packages/runtime-dom/src/modules/props.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function patchDOMProp(
1515
if (key === 'innerHTML' || key === 'textContent') {
1616
// null value case is handled in renderer patchElement before patching
1717
// children
18-
if (value === null) return
18+
if (value == null) return
1919
el[key] = value
2020
return
2121
}

0 commit comments

Comments
 (0)