diff --git a/packages/@mantine/core/src/components/Tabs/TabsPanel/TabsPanel.tsx b/packages/@mantine/core/src/components/Tabs/TabsPanel/TabsPanel.tsx index 1c875ce47c..debd6d5253 100644 --- a/packages/@mantine/core/src/components/Tabs/TabsPanel/TabsPanel.tsx +++ b/packages/@mantine/core/src/components/Tabs/TabsPanel/TabsPanel.tsx @@ -37,12 +37,13 @@ const defaultProps: Partial = {}; export const TabsPanel = factory((_props, ref) => { const props = useProps('TabsPanel', defaultProps, _props); - const { children, className, value, classNames, styles, style, mod, ...others } = props; + const { children, className, value, classNames, styles, style, mod, keepMounted, ...others } = + props; const ctx = useTabsContext(); const active = ctx.value === value; - const content = ctx.keepMounted || props.keepMounted ? children : active ? children : null; + const content = ctx.keepMounted || keepMounted ? children : active ? children : null; return (