From 5300ef7819e12d8b114d808ea2ac85e36a6fff5c Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 11 Oct 2016 13:05:34 -0400 Subject: [PATCH] fix style module removing styles with value 0 on update (fix #3905) --- src/platforms/web/runtime/modules/style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/web/runtime/modules/style.js b/src/platforms/web/runtime/modules/style.js index 558ad964cb..49906974ca 100644 --- a/src/platforms/web/runtime/modules/style.js +++ b/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)] = '' } }