-
Notifications
You must be signed in to change notification settings - Fork 44
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
only use event.preventDefault() in submitHandler if form invalid #76
base: master
Are you sure you want to change the base?
Conversation
This makes sure that the original submit event is passed on and the submit button name is submitted to the backend.
Can you say a bit more? Open to this PR, just want to understand it. |
Hi Chris, Yes, of course. Sorry. The current
Does this make it any clearer? I have tested my changes and as far as I can tell they work fine. Cheers Flo |
Thank you. Yes, that makes perfect sense, and I appreciate the clarification. I'll test this locally, run an updated build, and merge later when I get a spare moment. Thanks for this! |
Thank you very much. |
Is this problem solved? I have a form with multiple submits (formaction). The submits also have GET parameters (e.g. ?nextPage=43535) that are not submitted.
|
Can you please add this to the master brunch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine!
This makes sure that the original submit event is passed on and the submit button name is submitted to the backend.