Skip to content

Commit

Permalink
extra mouseup event cause onEnd didnot trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin-front committed Oct 26, 2017
1 parent 9f06b2d commit d63b863
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/common/createSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ export default function createSlider(Component) {
/* eslint-enable no-unused-expressions */
}

onMouseUp = () => {
this.removeDocumentEvents();
}

onMouseMove = (e) => {
if (!this.sliderRef) {
this.onEnd();
Expand Down Expand Up @@ -268,7 +264,6 @@ export default function createSlider(Component) {
className={sliderClassName}
onTouchStart={disabled ? noop : this.onTouchStart}
onMouseDown={disabled ? noop : this.onMouseDown}
onMouseUp={disabled ? noop : this.onMouseUp}
onKeyDown={disabled ? noop : this.onKeyDown}
onFocus={disabled ? noop : this.onFocus}
onBlur={disabled ? noop : this.onBlur}
Expand Down

0 comments on commit d63b863

Please sign in to comment.