Skip to content

Commit 392dca8

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

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]){
83+
if (vars[key] || vars[key] === '') {
8484
style.setProperty(`--${key}`, vars[key])
8585
}
8686
}

0 commit comments

Comments
 (0)