Skip to content

[BUG] - Range slider breaks when min and max are the same #5014

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

Open
maketryuk opened this issue Mar 10, 2025 · 1 comment · May be fixed by #5044
Open

[BUG] - Range slider breaks when min and max are the same #5014

maketryuk opened this issue Mar 10, 2025 · 1 comment · May be fixed by #5044
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@maketryuk
Copy link

HeroUI Version

@heroui/[email protected]

Describe the bug

If the values ​​are the same, it starts acting somehow inadequately, writing Invalid end: NaN

https://codesandbox.io/p/devbox/intelligent-pike-wwcmnw

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Set minValue={100}
  2. Set maxValue={100}
  3. Try dragging

Expected behavior

Fix the error and make it possible to set min max to be the same

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented Mar 10, 2025

@wingkwong wingkwong added 🐛 Type: Bug Something isn't working 📦 Scope : Components Related to the components labels Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants