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 Oct 9, 2015
1 parent 29964f5 commit 28a0477
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 @@ -110,7 +110,7 @@ const Slider = React.createClass({
let newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme;
this.setState({muiTheme: newMuiTheme});

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

0 comments on commit 28a0477

Please sign in to comment.