From 80d8cf111c2130d092753a415ea66a9189832279 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 14 Apr 2026 20:40:24 +0800 Subject: [PATCH] fix(mvc): skip abpAjaxForm submission when default is already prevented --- .../jquery-form/jquery-form-extensions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery-form/jquery-form-extensions.js b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery-form/jquery-form-extensions.js index 9470d46f88..1f5f67b0f4 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/jquery-form/jquery-form-extensions.js +++ b/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];