Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression from #186 #190

Merged
merged 1 commit into from
Jul 14, 2020
Merged

Fix regression from #186 #190

merged 1 commit into from
Jul 14, 2020

Conversation

leup
Copy link
Contributor

@leup leup commented Jun 10, 2020

Summary:

A regression was introduced in PR #186
https://github.com/react-native-community/react-native-slider/pull/186/files#diff-5847c2317e1d89fb73fd4d87ff989ce6R253

where
onValueChange(withinBounds);
became
onValueChange(value);

Therefore value is not correctly changed, preventing to reach min and max values

Test Plan:

Test with a slider from 0 to 100 (%) with step of 1.
Trying to slide to min and max.

Before
image
image

Cannot reach 0 and 100

After
image
image

Able to reach 0 and 100

Value is not correctly changed, preventing initial value to be set and to reach min and max values
@mikehardy mikehardy requested a review from brentvatne July 3, 2020 14:23
Copy link
Contributor

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leup this looks like a great catch!

Copy link
Contributor

@brentvatne brentvatne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@wojteg1337 wojteg1337 merged commit 86a8fed into callstack:master Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants