diff --git a/live-form-validation.js b/live-form-validation.js index 5df8088..0b18ddf 100644 --- a/live-form-validation.js +++ b/live-form-validation.js @@ -1183,7 +1183,9 @@ if (!Nette.validateForm(form)) { e.stopPropagation(); e.preventDefault(); + return; } + form.dispatchEvent(new Event("success")); }); // LiveForm: addition