spectrum-web-components
spectrum-web-components copied to clipboard
[Feat]: Form Association for inputs
Code of conduct
- [X] I agree to follow this project's code of conduct.
Impacted component(s)
Input elements
Description of the requested feature
I cannot use textfield inside form element as native one. FormAssociatedCustomElements provide an api to properly integrate into forms.
Mockups or screenshots
No response
Implementation notes or ideas
No response
Can i create a PR for textfield for this? Without form association, many things like formdata collection on submit, validation, reset, etc seems unconcievable. And workaround patterns are not documented. So I hope this to be addressed.
We be happy to take a look at one. We'd likely not be able to make a release with this feature until all of our Form Elements supported it to allow for uniformity across the library, but the first step is the hardest!
Related, we'd need to be sure to gate this feature on browser support to prevent its use from causing trouble in browsers that do not currently ship this API.