react-aria RadioGroup with react-hook-form & zod validation: focus question #6049
-
Wondering if this is expected behavior, a bug, or there is a mistake in the implementation. When a field is required, and I have used this RHF/Zod implementation with other react-aria components and the required field is focused correctly. Note the on react-aria-components@1.1.1
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
RadioGroup doesn't expose a focusable ref, we could consider doing that. I think using useImperitiveHandle on the RadioGroup though makes the most sense since it's aware of the roving tab index already |
Beta Was this translation helpful? Give feedback.
-
Thank you for the response. My team are switching all form fields to rac, so would certainly appreciate the focusable ref addition. |
Beta Was this translation helpful? Give feedback.
RadioGroup doesn't expose a focusable ref, we could consider doing that.
It looks like we don't expose the inputRef to the Radio ref either. So that could also be an option.
I think using useImperitiveHandle on the RadioGroup though makes the most sense since it's aware of the roving tab index already