tajo / react-range

🎚️Range input with a slider. Accessible. Bring your own styles and markup.
https://react-range.pages.dev
MIT License
859 stars 97 forks source link

values={[800000,2400000]} needs to be sorted when allowOverlap={false} #111

Closed Eriickson closed 3 years ago

Eriickson commented 3 years ago

when I try to get the data from the url I get this error: "values={[800000,2400000]} needs to be sorted when allowOverlap={false}"

my url: image

tajo commented 3 years ago

I don't see it.

Eriickson commented 3 years ago

@tajo Well, I've really tried everything, and even so I don't see how to solve it, I should add that these parameters come from the url parameters, it can be seen in the image and that I am using react-hook-form to control the forms

tajo commented 3 years ago

Maybe you are passing strings in instead of numbers?

Eriickson commented 3 years ago

sorry for waiting, really yes, continuing with the topic, the problem was that I was sending the url parameters as a library parameter without first converting those arguments to integer