Skip to content

Commit

Permalink
Fix tab navigation issue in Tab component
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMYSESx committed Jun 29, 2024
1 parent 571a94a commit adc19c9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion playground/components/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Tab extends Component<TabProps> {
<TabLink
onClick={(event) => {
event.preventDefault();
if (parentCallback && tabIndex) {
if (parentCallback && tabIndex !== undefined) {
parentCallback(tabIndex);
}
}}
Expand Down

0 comments on commit adc19c9

Please sign in to comment.