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

Rerendering uncontrolled Tabs can incorrectly reset selected index back to initial #40

Closed
cyu06 opened this issue Nov 7, 2016 · 0 comments
Assignees

Comments

@cyu06
Copy link
Contributor

cyu06 commented Nov 7, 2016

Uncontrolled tabs that have an initialSelectedTabIndex specified will fall back to that initial value upon rerender, even after a click selection has set the internal state to a new selected tab.

Local repro: rerendering the top part of my local example shows this tab index reset, even after a new tab has been selected.
uncontrolled-reset

I would expect this reset to only occur if the component was completely unmounted then remounted.

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

No branches or pull requests

1 participant