From 68c4cc8b364ff7617dc50bfd916a64eae2d33ff2 Mon Sep 17 00:00:00 2001 From: Cris Ward Date: Mon, 3 Feb 2020 13:25:17 +0000 Subject: [PATCH] Fixing inconsistencies with named slots between open and none --- src/compiler/compile/render_dom/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/compile/render_dom/index.ts b/src/compiler/compile/render_dom/index.ts index 433f43c774..fddf937343 100644 --- a/src/compiler/compile/render_dom/index.ts +++ b/src/compiler/compile/render_dom/index.ts @@ -532,8 +532,8 @@ export default function dom( }) }) if(!defaultslot) return(this.slotting=false); - // put what evers left info default slot - let toAppend = this._content.filter(node => slotted.indexOf(node)==-1) + // get all nodes without a slot attribute + let toAppend = this._content.filter(node => node.hasAttribute && !node.hasAttribute("slot")) // remove default if(!defaultslot.hasAttribute("hasupdated") && toAppend.length){ while (defaultslot.firstChild) {