Skip to content

Commit 5300ef7

Browse files
committed
fix style module removing styles with value 0 on update (fix #3905)
1 parent d0cfd54 commit 5300ef7

File tree

1 file changed

+1
-1
lines changed
  • src/platforms/web/runtime/modules

1 file changed

+1
-1
lines changed

src/platforms/web/runtime/modules/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function updateStyle (oldVnode: VNodeWithData, vnode: VNodeWithData) {
4949
}
5050

5151
for (name in oldStyle) {
52-
if (!style[name]) {
52+
if (style[name] == null) {
5353
el.style[normalize(name)] = ''
5454
}
5555
}

0 commit comments

Comments
 (0)