diff --git a/src/platforms/web/runtime/modules/dom-props.js b/src/platforms/web/runtime/modules/dom-props.js index 3e322462675..a5c3dc7f4aa 100644 --- a/src/platforms/web/runtime/modules/dom-props.js +++ b/src/platforms/web/runtime/modules/dom-props.js @@ -19,10 +19,11 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) { } for (key in oldProps) { - if (isUndef(props[key])) { + if (!(key in props)) { elm[key] = '' } } + for (key in props) { cur = props[key] // ignore children if the node has textContent or innerHTML,