diff --git a/packages/core/src/components/Tabs/Tab/Tab.tsx b/packages/core/src/components/Tabs/Tab/Tab.tsx index 7228766fd5..113db8900c 100644 --- a/packages/core/src/components/Tabs/Tab/Tab.tsx +++ b/packages/core/src/components/Tabs/Tab/Tab.tsx @@ -70,11 +70,13 @@ const Tab: FC = forwardRef( /> ); + const childrenArray = React.Children.toArray(children); + if (iconSide === "left") { - return [iconElement, ...children]; + return [iconElement, ...childrenArray]; } - return [...children, iconElement]; + return [...childrenArray, iconElement]; } return (