-
Notifications
You must be signed in to change notification settings - Fork 761
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
Can't dynamically add bounds #853
Comments
Which version are you on? I have no issue with dynamic min max values in 10.1.0 Btw, version 10+ Range and Slider are merged to just Slider, with the adding of the [range] attribute. In case you swap versions. |
My version is 10.0.0. Will update to 10.1.0 to see if I manage to get it working. Range slider works well with hard coded values, but as soon as I switch them with the ones that I get from the state in a parent component, handles are not moving at all. |
Maybe it's a bug in a library or something because the problem is fairly simple. I just need min and max values added dynamically. Here is the minimum working example of the implementation:
In the code above values change but the two tooltips dont move with the cursor. When hardcoding the values min={800} and max={1000} everything works as it should. I double-checked the typeof both defaultValues and they are numbers which is appropriate data type for min and max. I need these values to not be hard-coded.
The text was updated successfully, but these errors were encountered: