Skip to content
New issue

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

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

Already on GitHub? # to your account

Slider does not work when maximum value exceeds 100 #836

Open
ZackWard opened this issue Nov 11, 2024 · 0 comments · May be fixed by #837
Open

Slider does not work when maximum value exceeds 100 #836

ZackWard opened this issue Nov 11, 2024 · 0 comments · May be fixed by #837

Comments

@ZackWard
Copy link

When the slider is provided with a maximum value greater than 100, it miscalculates the length of the range progress bar. It uses the value of the slider as a percentage. For example, <Slider max={200} value={90} /> displays a range progress bar that is 90% wide (value interpreted as a percentage) instead of 45% wide.

image

Example repo: https://github.com/ZackWard/vigilant-octo-adventure/blob/main/src/app/page.tsx

@ZackWard ZackWard linked a pull request Nov 11, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant