-
-
Notifications
You must be signed in to change notification settings - Fork 446
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
Dynamic Update of tabs doesn't open a tab by default #337
Comments
I solved this by switching the mode to controlled and controlling the state in your own react component (using selectedIndex) |
Please could you share how you solved it I have the same problem |
I have a similar issue with using map. In my case, each Due to the Auth Guard component being async to decide if to show children, the Tabs get rendered at different times messing up the tab indexing. I really wish the |
So I have a React Component with a tablist. If I make it Tab 1 and Tab 2 with Tabpanel 1 and 2 everything works fine.
However, if I have an array called 'Types' that gets filled in the componentDidMount(), it re-renders my Tabs, but in my browser, none of the tabs is opened. Meaning, I have to click one in order to open it. adding defaultIndex={0} didn't help.
This is what I render;
`
The text was updated successfully, but these errors were encountered: