Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set a default tab to be active? #118

Open
jamalx31 opened this issue Apr 28, 2020 · 3 comments
Open

How to set a default tab to be active? #118

jamalx31 opened this issue Apr 28, 2020 · 3 comments

Comments

@jamalx31
Copy link

when using the example from the readme non of the panels content is visible unless you click on one of the tabs. how to you show a panel by default?

@jamalx31
Copy link
Author

jamalx31 commented Apr 28, 2020

found the answer after checking source code, you pass state to
what is odd is that the tabs indexes are 1,3,5 etc instead of 0,1,2...

UPDATE: this bug appears if you use React.StrictMode .. not sure why

@TrejoCode
Copy link

found the answer after checking source code, you pass state to
what is odd is that the tabs indexes are 1,3,5 etc instead of 0,1,2...

UPDATE: this bug appears if you use React.StrictMode .. not sure why

The same problem

@TrejoCode
Copy link

My problem was solved with this: #60
Check it, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants