Skip to content

Commit 80d8cf1

Browse files
committed
fix(mvc): skip abpAjaxForm submission when default is already prevented
1 parent 1bd111d commit 80d8cf1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
};
8989

9090
$form.off("submit.abpAjaxForm").on("submit.abpAjaxForm", function (e) {
91+
if (e.isDefaultPrevented()) {
92+
return;
93+
}
94+
9195
e.preventDefault();
9296

9397
var formEl = $form[0];

0 commit comments

Comments
 (0)