diff --git a/src/platforms/web/runtime/modules/style.js b/src/platforms/web/runtime/modules/style.js index 558ad964..49906974 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)] = '' } }