We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e75d41e + c974f73 commit 6a14986Copy full SHA for 6a14986
react-slider.js
@@ -264,6 +264,7 @@
264
},
265
266
componentWillUnmount: function () {
267
+ clearTimeout(this.resizeTimeout)
268
window.removeEventListener('resize', this._handleResize);
269
270
@@ -273,7 +274,7 @@
273
274
275
_handleResize: function () {
276
// setTimeout of 0 gives element enough time to have assumed its new size if it is being resized
- window.setTimeout(function() {
277
+ this.resizeTimeout = window.setTimeout(function() {
278
var slider = this.refs.slider.getDOMNode();
279
var handle = this.refs.handle0.getDOMNode();
280
var rect = slider.getBoundingClientRect();
0 commit comments