Adding "required" support for listbox #2284
maxratajczak
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Hey @maxratajczak, |
Beta Was this translation helpful? Give feedback.
2 replies
-
Add role="combobox" to listbox.button and pass aria-required |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I can see that when using the listbox a native html input element is rendered hidden for proper html form support, however this doesn't allow native "required" support for the element. Possible change could be rendering a select element behind the listbox so that the browser "required" message shows on error. I implemented this myself in my own project but I thought it would be a great feature to add for everyone.
Beta Was this translation helpful? Give feedback.
All reactions