forwardRef Conflicts With asChild Prop #2490
elson-currentcorp
started this conversation in
General
Replies: 1 comment 3 replies
-
It seems you have the wrong set up here. You’re rendering the hidden input as a button which seems counterintuitive. I believe you intend to render the thumb as a button, correct? If that’s the case, then the Slider.Thumb should be the correct element to add the asChild prop to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See example:
https://stackblitz.com/edit/vitejs-vite-vtntxz?file=src%2FApp.tsx
Use case is that I'm trying to focus the slider button externally.
Beta Was this translation helpful? Give feedback.
All reactions