Does the Select component add an aria-required
attribute when the isRequired
prop is supplied as true?
#8538
Unanswered
douglas-r-cole
asked this question in
Q&A
Replies: 1 comment 2 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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, we've been using the the Select component and noticed that the
aria-required
attribute does not seem to added to the "top level" div for the Select component whenisRequired={true}
is supplied as a property.In addition, when an
aria-required
attribute was supplied, it was "swallowed" by the component and not visible in the DOM.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.
All reactions