elm-select
elm-select copied to clipboard
Support required attribute when in form
The variants don't support the required attribute.
This becomes a problem when they exist inside native forms and the behavior expected is that we get a native prompt asking the user to fill in the input.
We are already including a hidden input to work with form submits so the trick will be to position the input in a spot where the native prompt ends up rendering under the select control.
Will also need to make sure the input is not sequentially focusable.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex?retiredLocale=nl