Skip to content

Commit

Permalink
Use getDomSibling to determine oldDom (+75 B)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Jun 5, 2019
1 parent 841b773 commit 574cd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component.js
Expand Up @@ -69,7 +69,7 @@ Component.prototype.forceUpdate = function(callback) {
const force = callback!==false;

let mounts = [];
diff(parentDom, vnode, assign({}, vnode), this._context, parentDom.ownerSVGElement!==undefined, null, mounts, force, dom);
diff(parentDom, vnode, assign({}, vnode), this._context, parentDom.ownerSVGElement!==undefined, null, mounts, force, dom == null ? getDomSibling(vnode) : dom);
commitRoot(mounts, vnode);
}
if (callback) callback();
Expand Down

0 comments on commit 574cd51

Please sign in to comment.