elm-select icon indicating copy to clipboard operation
elm-select copied to clipboard

Support required attribute when in form

Open Confidenceman02 opened this issue 11 months ago • 0 comments

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

Confidenceman02 avatar Mar 21 '24 04:03 Confidenceman02