Skip to content

Commit

Permalink
fix(slider): edge case when min > max (#2336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Janton authored and bobylito committed Sep 14, 2017
1 parent 9eae009 commit 8830ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Slider extends Component {
};

get isDisabled() {
return this.props.min === this.props.max;
return this.props.min >= this.props.max;
}

handleChange = ({ min, max, values }) => {
Expand Down

0 comments on commit 8830ab0

Please sign in to comment.