You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using react-hook-form along with radix.
One of the props passed with the register function of useForm, is a ref. While this works flawlessly with inputs, like <input /> , it does not work when the reference is a div with inputs inside it.
Using Controllers for the changes is really annoying, they generate logic replication, and more layers of knowledge for the users of my component. I'm trying to abstract the implementation of the select to be as simple as it is.
Is the're a way to have access to the <select> element generated by radix ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using react-hook-form along with radix.
One of the props passed with the register function of useForm, is a ref. While this works flawlessly with inputs, like
<input />
, it does not work when the reference is a div with inputs inside it.Using Controllers for the changes is really annoying, they generate logic replication, and more layers of knowledge for the users of my component. I'm trying to abstract the implementation of the select to be as simple as it is.
Is the're a way to have access to the
<select>
element generated by radix ?Beta Was this translation helpful? Give feedback.
All reactions