We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91aa700 commit 88f0e09Copy full SHA for 88f0e09
packages/runtime-dom/src/helpers/useCssVars.ts
@@ -82,7 +82,7 @@ function setVarsOnNode(el: Node, vars: Record<string, string>) {
82
const style = (el as HTMLElement).style
83
let cssText = ''
84
for (const key in vars) {
85
- if (vars[key] !== undefined && vars[key] !== null) {
+ if (vars[key] != null) {
86
style.setProperty(`--${key}`, vars[key])
87
cssText += `--${key}: ${vars[key]};`
88
}
0 commit comments