Bugfix when using ShadowDOM along with regular DOM

This commit is contained in:
Miel Truyen 2019-11-15 22:05:41 +01:00
parent 6e3fdaa718
commit f3597cbbb1

View File

@ -199,7 +199,10 @@ export function render(vnode, opts = {}) {
} }
queuedItems.push(child); queuedItems.push(child);
} }
previous = child.item; if(!child.meta.renderer.remove){
// If child is a node-type item track it as the previous (so we can insert next node-type items after it as intended)
previous = child.item;
}
} }
while(oldChildren && oldChildren.length){ while(oldChildren && oldChildren.length){
let oldChild = oldChildren.splice(0,1)[0]; let oldChild = oldChildren.splice(0,1)[0];