Skip to content

Commit

Permalink
Removed componentWillReceiveProps
Browse files Browse the repository at this point in the history
This causes state to reset when something in the Slider component changes.
  • Loading branch information
vramana committed Jul 21, 2015
1 parent c63e16b commit 01e6e4b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/inner-slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export var InnerSlider = React.createClass({
componentDidUpdate: function () {
this.adaptHeight();
},
componentWillReceiveProps: function(nextProps) {
this.initialize(nextProps);
},
onWindowResized: function () {
this.initialize(this.props);
},
Expand Down

1 comment on commit 01e6e4b

@vramana
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refer to #85

Please sign in to comment.