Skip to content

Commit 3798471

Browse files
committed
fix(runtime-core): update code
1 parent 392dca8 commit 3798471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-dom/src/helpers/useCssVars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function setVarsOnNode(el: Node, vars: Record<string, string>) {
8080
if (el.nodeType === 1) {
8181
const style = (el as HTMLElement).style
8282
for (const key in vars) {
83-
if (vars[key] || vars[key] === '') {
83+
if (vars[key] !== undefined && vars[key] !== null) {
8484
style.setProperty(`--${key}`, vars[key])
8585
}
8686
}

0 commit comments

Comments
 (0)