Browse Source

fix style module removing styles with value 0 on update (fix #3905)

dev
Evan You 8 years ago
parent
commit
5300ef7819
  1. 2
      src/platforms/web/runtime/modules/style.js

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

@ -49,7 +49,7 @@ function updateStyle (oldVnode: VNodeWithData, vnode: VNodeWithData) {
}
for (name in oldStyle) {
if (!style[name]) {
if (style[name] == null) {
el.style[normalize(name)] = ''
}
}

Loading…
Cancel
Save