Skip to content

Commit

Permalink
Fix error when setting new range and value
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasnou committed Apr 9, 2019
1 parent 09fffad commit d9bce60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class Nouislider extends React.Component {

componentDidUpdate() {
const { start, disabled, range } = this.props;
this.updateRange(range);
this.slider.set(start);
this.toggleDisable(disabled);
this.updateRange(range);
}

componentWillUnmount() {
Expand Down

0 comments on commit d9bce60

Please sign in to comment.