Skip to content

Commit

Permalink
fix style module removing styles with value 0 on update (fix vuejs#3905)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Oct 11, 2016
1 parent d0cfd54 commit 5300ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/web/runtime/modules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)] = ''
}
}
Expand Down

0 comments on commit 5300ef7

Please sign in to comment.