Skip to content

Commit a16f0ef

Browse files
committed
Fix children
1 parent 6f81f3d commit a16f0ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/create-wrapper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const createWrapper =
102102
children,
103103
];
104104
}
105-
return createElement(is || tagName, nextProps, ...children);
105+
nextProps.children = children;
106+
return createElement(is || tagName, nextProps);
106107
}
107108
) as Component<Base>;

0 commit comments

Comments
 (0)