Does the Select component add an aria-required
attribute when the isRequired
prop is supplied as true?
#8538
-
Hi, we've been using the the Select component and noticed that the In addition, when an We were wondering if this is by design, a potential bug, or we're not using the component correctly? thanks - Doug |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It should be added to the hidden input that backs up the Select and allows it to be natively submitted within a form. See https://react-spectrum.adobe.com/react-aria/Select.html#validation If you're not seeing this, can you please provide a minimal reproduction and steps to reproduce? |
Beta Was this translation helpful? Give feedback.
Thank you, I think this could be considered a bug if you'd like to open an issue. You can work around it with an aria-label/aria-labelledby or just something in your visible label since I assume there is an indication for sighted users as well.