Skip to content

Commit 835c54b

Browse files
Rajat ChaudharyRajat Chaudhary
authored andcommitted
fix: styling of tabpanel
1 parent a5a5da8 commit 835c54b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/unstyled/tabs/src/TabPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export const TabPanel = <StyledTabPanel,>(
1919
tabIndex={value === currentActiveTab ? 0 : -1}
2020
role={Platform.OS === 'web' ? 'tabpanel' : undefined}
2121
{...(props as StyledTabPanel)}
22-
style={{ flex: 1 }}
22+
//@ts-ignore
23+
style={[{ display: isActive ? 'flex' : 'none' }, props.style]}
2324
ref={ref}
2425
/>
2526
);

0 commit comments

Comments
 (0)