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

[IconButton] Fix a onTouchStart error #5833

Merged
merged 1 commit into from Dec 28, 2016
Merged

[IconButton] Fix a onTouchStart error #5833

merged 1 commit into from Dec 28, 2016

Conversation

oliviertassinari
Copy link
Member

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

That error was introduced by #5755. I have got some issue from sentry showing that in production:

TypeError
r.props.onTouchStart is not a function

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: icon button This is the name of the generic UI component, not the React module! labels Dec 27, 2016
@oliviertassinari oliviertassinari merged commit 013eb79 into mui:master Dec 28, 2016
@oliviertassinari oliviertassinari deleted the fix-touch-start branch December 28, 2016 08:58
@@ -79,12 +73,6 @@ class EnhancedButton extends Component {
onKeyDown: () => {},
onKeyUp: () => {},
onKeyboardFocus: () => {},
onMouseDown: () => {},
Copy link
Contributor

Choose a reason for hiding this comment

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

May I know why this doesn't work?

Copy link
Member Author

Choose a reason for hiding this comment

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

That property was unused.

Copy link
Contributor

Choose a reason for hiding this comment

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

This of course. But this one onTouchStart? I'm asking couse I've run today with problems in my app becasue of the bug.

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: icon button 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

3 participants