Tabs: Cannot set the index of tab programmatically. #8809
Labels
bug 🐛
Something doesn't work
component: tabs
This is the name of the generic UI component, not the React module!
When trying to set the index of tab programmatically from componentDidMount the Tab indicator doesn't change.
Expected Behavior
When changing the index in state the Tabs component should update the indicator.
Current Behavior
The indicator doesn't change even when the render is called again with the correct index from state.
Steps to Reproduce (for bugs)
Here is a codesandbox.io:
https://codesandbox.io/s/ykn36kzyj
The indicator should be set for index 1 but the indicator is set to index 0.
This worked earlier, I noticed this issue when I updated material-ui to beta-17
Context
Your Environment
The text was updated successfully, but these errors were encountered: