Skip to content

Commit 01e6e4b

Browse files
committed
Removed componentWillReceiveProps
This causes state to reset when something in the Slider component changes.
1 parent c63e16b commit 01e6e4b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/inner-slider.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ export var InnerSlider = React.createClass({
5151
componentDidUpdate: function () {
5252
this.adaptHeight();
5353
},
54-
componentWillReceiveProps: function(nextProps) {
55-
this.initialize(nextProps);
56-
},
5754
onWindowResized: function () {
5855
this.initialize(this.props);
5956
},

0 commit comments

Comments
 (0)