fix: nested children slots erroring (#2674)

Fixes https://github.com/denoland/fresh/issues/2624
This commit is contained in:
Marvin Hagemeister
2024-10-04 05:05:27 +02:00
committed by GitHub
parent ad8291447a
commit 75b5854810
2 changed files with 45 additions and 5 deletions
+1 -5
View File
@@ -408,11 +408,7 @@ export function domToVNode(
});
const parentVNode = vnodeStack.at(-1)!;
if (slotName === "children") {
addVNodeChild(parentVNode, vnode);
} else {
parentVNode.props[slotName] = vnode;
}
parentVNode.props[slotName] = vnode;
vnodeStack.push(vnode);
} else if (kind === "partial") {
sib = maybeHideMarker(sib);