fix(runtime-dom/style): fix patchStyle on falsy next value (#1504)
fix #1506
This commit is contained in:
@@ -17,7 +17,7 @@ export function patchStyle(el: Element, prev: Style, next: Style) {
|
||||
}
|
||||
if (prev && !isString(prev)) {
|
||||
for (const key in prev) {
|
||||
if (!next[key]) {
|
||||
if (next[key] == null) {
|
||||
setStyle(style, key, '')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user