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

onChangeEndValue of slider is never equals 0 #5819

Open
5 tasks done
ramanand-rv opened this issue Oct 12, 2024 · 0 comments
Open
5 tasks done

onChangeEndValue of slider is never equals 0 #5819

ramanand-rv opened this issue Oct 12, 2024 · 0 comments

Comments

@ramanand-rv
Copy link

Description

On dragging slider to value=0, onChangeValue is updated with 0. However the onChangeEndValue remains unchanged. It is occuring due to v && setOnChangeEndValue(Math.floor(v)). Removing v && fixes the issue.

CodeSandbox/Snack link

https://snack.expo.dev/98UwrdRC6_SpsdYQvHwmI

Steps to reproduce

  1. Go to https://docs.nativebase.io/slider
  2. Scroll down to 'https://docs.nativebase.io/slider#h3-value'
  3. Try dragging the slider to 0
    https://github.com/user-attachments/assets/c1b144fa-2899-4423-bfd8-4deb8c0c74ee
  4. See error

NativeBase Version

3.4.x

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant