Skip to content

Commit

Permalink
Fix value sorting when allowCross={true}
Browse files Browse the repository at this point in the history
  • Loading branch information
bayov committed Aug 6, 2016
1 parent 5d76933 commit 734ab9d
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 @@ -122,7 +122,7 @@ class Slider extends React.Component {
nextBounds[state.handle] = value;
let nextHandle = state.handle;
if (props.allowCross) {
nextBounds.sort((a, b) => a > b);
nextBounds.sort((a, b) => a - b);
nextHandle = nextBounds.indexOf(value);
}
this.onChange({
Expand Down

0 comments on commit 734ab9d

Please sign in to comment.