Skip to content

Commit

Permalink
fix: Remove event listener handleTouchEnd when Slider unmount (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdale44 authored and davidchin committed May 20, 2017
1 parent a6ddbf5 commit 660fa5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/input-range/slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default class Slider extends React.Component {
* @return {void}
*/
removeDocumentTouchEndListener() {
this.node.ownerDocument.removeEventListener('touchend', this.handleTouchUp);
this.node.ownerDocument.removeEventListener('touchend', this.handleTouchEnd);
}

/**
Expand Down

0 comments on commit 660fa5c

Please sign in to comment.