Skip to content

Commit

Permalink
pushable may be a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin-front committed Sep 18, 2017
1 parent d601b4d commit f02c9cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Range.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ class Range extends React.Component {
}

pushSurroundingHandles(bounds, handle) {
const { pushable: threshold } = this.props;
const value = bounds[handle];
let { pushable: threshold } = this.props;
threshold = Number(threshold);

let direction = 0;
if (bounds[handle + 1] - value < threshold) {
Expand Down

0 comments on commit f02c9cd

Please sign in to comment.