Skip to content

Commit 39bbdb7

Browse files
committed
#6658 manager.Component: addVnodeComponentReferences() => adding an additional top-level wrapper node check
1 parent 8b54166 commit 39bbdb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/manager/Component.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ class Component extends Manager {
4949

5050
let me = this,
5151
childNodes = vnode?.childNodes ? [...vnode.childNodes] : [],
52+
isWrapper = childNodes.length > 0 && !!me.wrapperNodes.get(vnode.id),
5253
childNodeId, component, componentId, parentRef, referenceNode;
5354

5455
vnode.childNodes = childNodes;
5556

5657
childNodes.forEach((childNode, index) => {
5758
childNodeId = childNode.id;
5859

59-
if (!childNode.componentId && childNodeId !== ownerId) {
60+
if (!childNode.componentId && childNodeId !== ownerId && !isWrapper) {
6061
component = me.get(childNodeId);
6162

6263
if (!component) {

0 commit comments

Comments
 (0)