|
|
@@ -28,6 +28,11 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
|
|
|
if (key === 'textContent' || key === 'innerHTML') {
|
|
|
if (vnode.children) vnode.children.length = 0
|
|
|
if (cur === oldProps[key]) continue
|
|
|
+ // #6601 work around Chrome version <= 55 bug where single textNode
|
|
|
+ // replaced by innerHTML/textContent retains its parentNode property
|
|
|
+ if (elm.childNodes.length === 1) {
|
|
|
+ elm.removeChild(elm.childNodes[0])
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (key === 'value') {
|