Skip to content

Commit

Permalink
Fix value update while dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI committed Sep 4, 2015
1 parent cd6bc78 commit dd35fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ let Slider = React.createClass({
},

componentWillReceiveProps(nextProps) {
if (nextProps.value !== undefined) {
if (nextProps.value !== undefined && !this.state.dragging) {
this.setValue(nextProps.value);
}
},
Expand Down

0 comments on commit dd35fd1

Please sign in to comment.