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,8 +199,11 @@ export function render(vnode, opts = {}) {
} }
queuedItems.push(child); queuedItems.push(child);
} }
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; 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];
if(oldChild.meta.renderer.remove) if(oldChild.meta.renderer.remove)