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

[EnhancedButton] Fix keyboard focus jumping #4127

Merged
merged 1 commit into from
Apr 30, 2016
Merged

[EnhancedButton] Fix keyboard focus jumping #4127

merged 1 commit into from
Apr 30, 2016

Conversation

mbrookes
Copy link
Member

@mbrookes mbrookes commented Apr 30, 2016

  • 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).

It was possible to move keyboard focus using the mouse by keyboard focussing
on a button, clicking on another button, holding, and moving the mosue away.

Also fixes a state naming issue in RaisedButton, and some code style issues.

Fixes #3919

@@ -210,6 +210,7 @@ class EnhancedButton extends Component {
this.focusTimeout = setTimeout(() => {
if (tabPressed) {
this.setKeyboardFocus(event);
tabPressed = false;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual bug fix.

It was possible to move keyboard focus using the mouse by keyboard focussing
on a button, clicking on another button, holding, and moving the mosue away.

Also fixes a state naming issue in RaisedButton, and some code style issues.
@mbrookes mbrookes merged commit cad4cef into mui:master Apr 30, 2016
@nathanmarks
Copy link
Member

@mbrookes thanks for fixing this! 😄 works great now

@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 30, 2016

That was an ugly bug 🎉. @mbrookes Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants