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

[Tabs] Fix Scroll button visibility state when child tab items are modified #7576

Merged
merged 1 commit into from
Jul 27, 2017
Merged

[Tabs] Fix Scroll button visibility state when child tab items are modified #7576

merged 1 commit into from
Jul 27, 2017

Conversation

shawnmcknight
Copy link
Contributor

  • PR has tests / docs demo, and is linted.
  • Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
  • Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

When a render of the <Tabs> container alters the scrollWidth of the container (such as if a new tab was added after initial render) the visibility state of the scroll buttons is not examined and updated. This PR adds a check of the visibility state in componentDidMount. Resolves #7569.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work v1 component: tabs This is the name of the generic UI component, not the React module! labels Jul 27, 2017
@oliviertassinari oliviertassinari merged commit fa9563f into mui:v1-beta Jul 27, 2017
@oliviertassinari
Copy link
Member

@shawnmcknight Great fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tabs This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants