Skip to content
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: add form attribute for ion-button #23712

Closed
3 tasks done
Spinnenzunge opened this issue Aug 2, 2021 · 3 comments
Closed
3 tasks done

feat: add form attribute for ion-button #23712

Spinnenzunge opened this issue Aug 2, 2021 · 3 comments
Labels

Comments

@Spinnenzunge
Copy link

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

@ionitron-bot ionitron-bot bot added the triage label Aug 2, 2021
@liamdebeasi
Copy link
Member

Thanks for the issue. I am going to close this as a duplicate of #21194.

@Spinnenzunge
Copy link
Author

Oh my bad, sorry

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2021

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants