Skip to content

Commit 86d465c

Browse files
committed
Change Element.children to Element.childNodes
1 parent e0f8aeb commit 86d465c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prop-bridge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const getPropsFromNode = (node: HTMLElement) => {
4949
{}
5050
);
5151

52-
const children = Array.from(node.children).map((e) => e.cloneNode(true));
52+
const children = Array.from(node.childNodes).map((e) => e.cloneNode(true));
5353
mappedProps.children = <ReactDomChild>{children}</ReactDomChild>;
5454
return mappedProps;
5555
};

0 commit comments

Comments
 (0)