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

Pass all arguments from react-hook-form to onSubmit #8199

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Sep 26, 2022

React-hook-form passes the event alongside the form values to the submit handler. It allows implementing things such as having multiple submit buttons with different values. See react-hook-form/react-hook-form#5494 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants