You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This lets the button element inside ion-button associate with a form element in the dom. Especially useful if the ion-button type="submit" can not be placed inside a form element, e.g. if we want to place it inside the ion-footer container but the form is inside ion-content
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prequisites
Describe the Feature Request
Add the html 5 form attribute (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-form) for buttons on the ion-button component
Describe the Use Case
This lets the button element inside ion-button associate with a form element in the dom. Especially useful if the ion-button type="submit" can not be placed inside a form element, e.g. if we want to place it inside the ion-footer container but the form is inside ion-content
Describe Preferred Solution
Just pass the form attribute (and maybe other form specific attributes specified in https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button) to its native button element inside the shadow dom
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: