diff --git a/lib/mixins/property-effects.js b/lib/mixins/property-effects.js index c8d2003e72..50abd2a2c5 100644 --- a/lib/mixins/property-effects.js +++ b/lib/mixins/property-effects.js @@ -2866,7 +2866,7 @@ export const PropertyEffects = dedupingMixin(superClass => { // parent list, a template's `parent` reference is never removed, since // this is is determined by the tree structure and applied at // `applyTemplateInfo` time. - let templateInfo = dom.templateInfo; + const templateInfo = dom.templateInfo; const {previousSibling, nextSibling, parent} = templateInfo; if (previousSibling) { previousSibling.nextSibling = nextSibling; @@ -2878,6 +2878,7 @@ export const PropertyEffects = dedupingMixin(superClass => { } else if (parent) { parent.lastChild = previousSibling; } + templateInfo.nextSibling = templateInfo.previousSibling = null; // Remove stamped nodes let nodes = templateInfo.childNodes; for (let i=0; i + +