Skip to content

Commit

Permalink
[Slider] Put back the clearValue() declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
felipethome committed Feb 14, 2016
1 parent 2aa64ef commit f392585
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ const Slider = React.createClass({
}
},

clearValue() {
this.setValue(this.props.min);
},

_alignValue(val) {
const {step, min} = this.props;
const alignValue = Math.round((val - min) / step) * step + min;
Expand Down

0 comments on commit f392585

Please sign in to comment.