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

[ButtonBase] Improve enter & space handling #11585

Merged
merged 2 commits into from May 25, 2018
Merged

[ButtonBase] Improve enter & space handling #11585

merged 2 commits into from May 25, 2018

Conversation

ThewBear
Copy link
Contributor

@ThewBear ThewBear commented May 25, 2018

Closes #11584.

@oliviertassinari oliviertassinari self-assigned this May 25, 2018
@oliviertassinari oliviertassinari changed the title Fix #11584 [ButtonBase] Improve enter & space handling May 25, 2018
@@ -146,6 +146,7 @@ class ButtonBase extends React.Component {
event.target === event.currentTarget &&
component &&
component !== 'button' &&
this.button.tagName !== 'A' &&
Copy link
Member

Choose a reason for hiding this comment

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

⚠️ link with no href needs different handling: #10339. I'm on it.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: ButtonBase The React component. labels May 25, 2018
@oliviertassinari oliviertassinari merged commit 90c0ea2 into mui:master May 25, 2018
@oliviertassinari
Copy link
Member

@thebear44 It's a great first pull request on Material-UI 👌🏻. Thank you for giving it a shot!

@ThewBear ThewBear deleted the patch-1 branch May 26, 2018 04:12
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: ButtonBase The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants