-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
submitHandler still get triggered when debug is true #2042
Comments
Thanks a lot for filling this issue! we'll triage and take a look at it as soon as possible! |
has this been fixed yet? |
Thanks a lot for the reminder. |
No worries. Also, it would be super awesome if we had a flag that would disable submit actions. In mobile apps (i.e. jquery.mobile) where a form page is loaded into an existing dom, a submit action will cause the form page to be reloaded and since the form page isn't the main page, the app crashes. Setting the action=void doesn't solve the problems. Most form actions are done via ajax so invoking all those submit actions really messes things up. |
I cant even begin to tell you how much loathing I have for jsFiddle or jsBin. I work 80-100 hours a week and by the time I get something created in those sites I've wasted 1/2 or more of a day. I've simply stopped using them. I've attached the files you need sans any .css (this took all of 10 minutes to cobble together). |
Hi @ppetree Thanks for the demo code. Here are some thoughts after exploring the code:
In summary, I think what you need in your case is to (without forgoting point 1 above):
As for this issue, I still need to gather some data before starting any fix. |
This comment has been minimized.
This comment has been minimized.
Marking this as a bug and reopning. Will try to fix it as soon as possible. |
used code bellow in our page,submitHandler still got triggered even if debug is true
jquery-validation-1.16.0
chrome 59.0.3071.115
Steps to reproduce
use attched file to reproduce
debug.zip
Expected behaviour
submitHandler not get triggered
Actual behaviour
submitHandler get triggered
The text was updated successfully, but these errors were encountered: