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(button): improve button form integration #3287

Merged
merged 5 commits into from
Oct 20, 2021

Conversation

jcfranco
Copy link
Member

Related Issue: N/A

Summary

This PR improves submit and reset button behavior for native forms.

It does so by no longer requiring users provide the associated form's ID (the parent form is automatically looked up) and it also simplifies the submit-handling code by using requestSubmit (polyfilled for Safari).

Notes

Pulled from #2777 to make PR leaner.

@jcfranco jcfranco added the enhancement Issues tied to a new feature or request. label Oct 18, 2021
@jcfranco jcfranco added this to the Sprint 10/11 – 10/22 milestone Oct 18, 2021
@jcfranco jcfranco requested a review from a team as a code owner October 18, 2021 17:07
@jcfranco jcfranco self-assigned this Oct 18, 2021
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues tied to a new feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants