Using Slider as FormField #783
-
Hi, folks. I'm trying to use the Slider as a FormField but when I get the form state is always returning zero. Any idea how to fix that? I'm following the Form example that uses react-hook-form.
|
Beta Was this translation helpful? Give feedback.
Answered by
olavocarvalho
Jun 30, 2023
Replies: 1 comment 1 reply
-
I figured out how to do that: just pass onValueChange={props.onChange} in the SliderPrimitive.Root component. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
olavocarvalho
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured out how to do that: just pass onValueChange={props.onChange} in the SliderPrimitive.Root component.