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

Error: noUiSlider: 'range' 'min' and 'max' cannot be equal #578

Closed
ghost opened this issue Dec 17, 2015 · 8 comments
Closed

Error: noUiSlider: 'range' 'min' and 'max' cannot be equal #578

ghost opened this issue Dec 17, 2015 · 8 comments
Labels
Feature Feature requests/suggestions

Comments

@ghost
Copy link

ghost commented Dec 17, 2015

Hi, I have the problem, how fix this?
2015-12-17_19 50 31

@leongersen
Copy link
Owner

By not having the min and max parameters equal? There is no range between 300 and 300.

@onedeadear
Copy link

Depends on your definition, but allowing min and max to be the same would be useful. e.g. I've a process whose version increments by 1 with each event that occurs. If the process fails, I use the a slider with a single handle to select which version to retry from. This works well unless the process fails on the first step, then I can't use the slider and need to do some faffing to display something else.

@leongersen

This comment has been minimized.

@jhoanborges

This comment has been minimized.

@seyyed-sina
Copy link

By not having the min and max parameters equal? There is no range between 300 and 300.

from UX aspect, this is absolutely correct. The range can change from for example 1000 to 1000 by dragging the slider. why not?

@leongersen leongersen reopened this Jun 16, 2021
@leongersen leongersen added the Feature Feature requests/suggestions label Jun 16, 2021
@leongersen
Copy link
Owner

I'm open to a PR on this.

@leongersen
Copy link
Owner

noUiSlider 15.4.0 adds support for sliders with ranges where min = max. In this case, handles are spaced evenly across the slider.

Thank you for your feedback, everybody!

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature Feature requests/suggestions
Projects
None yet
Development

No branches or pull requests

4 participants