Skip to content

Commit

Permalink
Fix regression from #186 (#190)
Browse files Browse the repository at this point in the history
Value is not correctly changed, preventing initial value to be set and to reach min and max values
  • Loading branch information
leup authored Jul 14, 2020
1 parent 5ceb08b commit 86a8fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/RNCSliderNativeComponent.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ const RCTSliderWebComponent = React.forwardRef(
);
if (value !== withinBounds) {
setValue(withinBounds);
onValueChange(value);
onValueChange(withinBounds);
}
},
[minimumValue, maximumValue, value, onValueChange],
Expand Down

0 comments on commit 86a8fed

Please sign in to comment.