Skip to content
Discussion options

You must be logged in to vote

Hey @lmartins,

Are you controlling the Slider with value/onValueChange, or using in an uncontrolled way with defaultValue?

In any case, if the range dynamically changes, you will need to make sure the current value it holds is within the current valid range as we only validate this when interacting with the component (pointer/keyboard), but not when you are setting the value (defaultValue or value).

It's a bit difficult without seeing an example, but I believe that's the issue and you just need to clamp the current value within the range when it changes.

If you are NOT controlling the component, to be able to update defaultValue and have it update the component, you will need to use React's

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lmartins
Comment options

Answer selected by lmartins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants