New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: form
property on form components
#29343
Comments
Thanks for the issue! Could you please provide a use case for this? |
The |
@oliveryasuna the team is hoping to understand what limitations or challenges you have with the existing implementation to evaluate if the suggested feature would solve that problem. Ionic's components are not a 1:1 API with built-in HTML elements. Adding support for a form element to a web component using shadow dom would not associate the form control to the form and would result in no added benefit to developers. Form association for shadow dom is handled by ElementInternals which Ionic Framework is not able to support until v9 at the earliest, due to the supported browser versions (Safari v16.4). Ionic Framework supports the feature of If you can provide more information about what you are trying to accomplish, we can best evaluate how to offer workarounds or understand if it is resolved by what ElementInternals will offer. Thanks! |
Prerequisites
Describe the Feature Request
It seems that some of the form components support a
form
property. For example,ion-button
, supports eitherstring
(standard, by ID) orHTMLFormElement
, which is super useful.I would love to see this property on other form components, such as
ion-input
andion-checkbox
.Describe the Use Case
Associate form elements with a form, as per usual HTML forms.
Describe Preferred Solution
No response
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: