From 86a8fed257b5869dded3f279ba4d4a3c253555a7 Mon Sep 17 00:00:00 2001 From: "paul@gh" Date: Tue, 14 Jul 2020 10:04:51 +0200 Subject: [PATCH] Fix regression from #186 (#190) Value is not correctly changed, preventing initial value to be set and to reach min and max values --- src/js/RNCSliderNativeComponent.web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/RNCSliderNativeComponent.web.js b/src/js/RNCSliderNativeComponent.web.js index ef8c6737..6305acdb 100644 --- a/src/js/RNCSliderNativeComponent.web.js +++ b/src/js/RNCSliderNativeComponent.web.js @@ -267,7 +267,7 @@ const RCTSliderWebComponent = React.forwardRef( ); if (value !== withinBounds) { setValue(withinBounds); - onValueChange(value); + onValueChange(withinBounds); } }, [minimumValue, maximumValue, value, onValueChange],