Skip to content

Commit 3fc5a04

Browse files
fix: add validation children tabgroup
1 parent e328b08 commit 3fc5a04

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/Tabs/TabGroup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ function TabGroup({
156156
...child.props
157157
})
158158
}
159+
if ((child as React.ReactElement)?.props?.hidden) return null
159160
return child
160161
})
161162
}, [

0 commit comments

Comments
 (0)