Browse Source

Merge pull request #25260 from abpframework/fix/abp-ajax-form-check-default-prevented

fix(mvc): skip `abpAjaxForm` submission when default is already prevented
pull/25274/head
Engincan VESKE 1 month ago
committed by GitHub
parent
commit
2e5051764b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery-form/jquery-form-extensions.js

4
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery-form/jquery-form-extensions.js

@ -88,6 +88,10 @@
};
$form.off("submit.abpAjaxForm").on("submit.abpAjaxForm", function (e) {
if (e.isDefaultPrevented()) {
return;
}
e.preventDefault();
var formEl = $form[0];

Loading…
Cancel
Save