Skip to content

Commit

Permalink
[Slider] Remove touchend event listener (#12923)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-growratio authored and oliviertassinari committed Sep 18, 2018
1 parent 103ab9b commit a59903a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/material-ui-lab/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ class Slider extends React.Component {

document.body.removeEventListener('mousemove', this.handleMouseMove);
document.body.removeEventListener('mouseup', this.handleMouseUp);
document.body.removeEventListener('touchend', this.handleMouseUp);

if (typeof this.props.onDragEnd === 'function') {
this.props.onDragEnd(event);
Expand Down

0 comments on commit a59903a

Please sign in to comment.