fix(runtime-dom): properly handle style properties with undefined values (#5348)
fix #5322
This commit is contained in:
@@ -45,6 +45,7 @@ function setStyle(
|
||||
if (isArray(val)) {
|
||||
val.forEach(v => setStyle(style, name, v))
|
||||
} else {
|
||||
if (val == null) val = ''
|
||||
if (name.startsWith('--')) {
|
||||
// custom property definition
|
||||
style.setProperty(name, val)
|
||||
|
||||
Reference in New Issue
Block a user