react-slider
Advanced tools
Comparing version 0.5.1 to 0.6.0
{ | ||
"name": "react-slider", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "Slider component for React", | ||
@@ -26,4 +26,4 @@ "main": "react-slider.js", | ||
"peerDependencies": { | ||
"react": ">=0.12.1" | ||
"react": ">=0.14" | ||
} | ||
} |
@@ -267,2 +267,3 @@ (function (root, factory) { | ||
componentWillUnmount: function () { | ||
clearTimeout(this.resizeTimeout) | ||
window.removeEventListener('resize', this._handleResize); | ||
@@ -277,5 +278,5 @@ }, | ||
// setTimeout of 0 gives element enough time to have assumed its new size if it is being resized | ||
window.setTimeout(function() { | ||
var slider = this.refs.slider.getDOMNode(); | ||
var handle = this.refs.handle0.getDOMNode(); | ||
this.resizeTimeout = window.setTimeout(function() { | ||
var slider = this.refs.slider; | ||
var handle = this.refs.handle0; | ||
var rect = slider.getBoundingClientRect(); | ||
@@ -282,0 +283,0 @@ |
@@ -5,3 +5,3 @@ # React Slider | ||
See demo: [https://cell303.github.io/react-slider](https://cell303.github.io/react-slider/) | ||
See demo: [https://mpowaga.github.io/react-slider/](https://mpowaga.github.io/react-slider/) | ||
@@ -8,0 +8,0 @@ ### Important Note |
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
33969
675