only use event.preventDefault() in submitHandler if form invalid#76
only use event.preventDefault() in submitHandler if form invalid#76xini wants to merge 1 commit intocferdinandi:masterfrom
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? |
This makes sure that the original submit event is passed on and the submit button name is submitted to the backend.