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

[FloatingActionButton] fixed an error when element gets focus via tab #3885

Merged
merged 1 commit into from
Apr 6, 2016

Conversation

olegberman
Copy link
Contributor

@olegberman olegberman commented Apr 5, 2016

Before, I would get an error when I would focus on a floating action button with tab:
floating-action-button.js:311 Uncaught TypeError: this.getStyles is not a function

This is because getStyles is declared as a standalone function and expects current props and the context. Here is my fix.

Thanks

@oliviertassinari
Copy link
Member

@olegberman Good catch, thanks 👍.

@oliviertassinari oliviertassinari merged commit cf4cf87 into mui:master Apr 6, 2016
@zannager zannager added component: tabs This is the name of the generic UI component, not the React module! component: button This is the name of the generic UI component, not the React module! labels Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! 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.

None yet

4 participants