react-slider
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.1.2](https://github.com/zillow/react-slider/compare/v1.1.1...v1.1.2) (2020-11-10) | ||
### Bug Fixes | ||
* `onAfterChange` now returns the correct value when used as a controlled component ([03fcc17](https://github.com/zillow/react-slider/commit/03fcc175df5ee28644e122e87592991d9467f765)), closes [#201](https://github.com/zillow/react-slider/issues/201) | ||
### [1.1.1](https://github.com/zillow/react-slider/compare/v1.1.0...v1.1.1) (2020-11-03) | ||
@@ -7,0 +14,0 @@ |
@@ -475,7 +475,2 @@ var _jsxFileName = "/Users/brians/git/react-slider/src/components/ReactSlider/ReactSlider.jsx"; | ||
_proto.onEnd = function onEnd(eventMap) { | ||
// Allow controlled updates to continue | ||
this.setState({ | ||
pending: false | ||
}); | ||
if (eventMap) { | ||
@@ -487,4 +482,8 @@ removeHandlers(eventMap); | ||
this.fireChangeEvent('onAfterChange'); | ||
} | ||
} // Allow controlled updates to continue | ||
this.setState({ | ||
pending: false | ||
}); | ||
this.hasMoved = false; | ||
@@ -491,0 +490,0 @@ }; |
@@ -481,7 +481,2 @@ "use strict"; | ||
_proto.onEnd = function onEnd(eventMap) { | ||
// Allow controlled updates to continue | ||
this.setState({ | ||
pending: false | ||
}); | ||
if (eventMap) { | ||
@@ -493,4 +488,8 @@ removeHandlers(eventMap); | ||
this.fireChangeEvent('onAfterChange'); | ||
} | ||
} // Allow controlled updates to continue | ||
this.setState({ | ||
pending: false | ||
}); | ||
this.hasMoved = false; | ||
@@ -497,0 +496,0 @@ }; |
{ | ||
"name": "react-slider", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Slider component for React", | ||
@@ -5,0 +5,0 @@ "main": "lib/components/ReactSlider/ReactSlider.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124110
2480