Skip to content

Commit

Permalink
WIP(ui-tabs): remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joyenjoyer committed Oct 18, 2023
1 parent 7a0f2b7 commit 4201f96
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/ui-tabs/src/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,7 @@ class Tabs extends Component<TabsProps, TabsState> {
.filter((child) => matchComponentTypes<PanelChild>(child, [Panel]))
.filter((child) => child.props.active)

if (
activePanels.length >
1 /*|| (activePanelCount === 1 && React.Children.toArray(children).length > 1)*/
) {
if (activePanels.length > 1) {
error(false, `[Tabs] Only one Panel can be marked as active.`)
}

Expand Down

0 comments on commit 4201f96

Please sign in to comment.