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

Allow setting initial tab index #375

Closed
WRidder opened this issue Feb 27, 2015 · 0 comments · Fixed by #389
Closed

Allow setting initial tab index #375

WRidder opened this issue Feb 27, 2015 · 0 comments · Fixed by #389
Labels
component: tabs This is the name of the generic UI component, not the React module!

Comments

@WRidder
Copy link
Contributor

WRidder commented Feb 27, 2015

I was wondering if it's possible to set the initial selected tab using the Tabs component. It doesn't seem to be the case at the moment since it doesn't look like you can influence the selectedIndex: 0 state property.

Any thoughts if this may be useful? If so, I could make a PR.

WRidder added a commit to WRidder/material-ui that referenced this issue Mar 5, 2015
Fixes mui#375. Also checks whether the index is not out of bounds w.r.t. the amount of tab children.
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 25, 2022
@zannager zannager added component: tabs This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tabs This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants