Skip to content

Commit

Permalink
fix(runtime-core): update code
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Dec 19, 2023
1 parent 91aa700 commit 88f0e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/helpers/useCssVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function setVarsOnNode(el: Node, vars: Record<string, string>) {
const style = (el as HTMLElement).style
let cssText = ''
for (const key in vars) {
if (vars[key] !== undefined && vars[key] !== null) {
if (vars[key] != null) {
style.setProperty(`--${key}`, vars[key])
cssText += `--${key}: ${vars[key]};`
}
Expand Down

0 comments on commit 88f0e09

Please sign in to comment.