From 6e507c45ede1352319153e84f49f97af89823603 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 27 Nov 2024 11:54:50 +0800 Subject: [PATCH] Fix global form submit event (#32652) --- web_src/js/features/common-fetch-action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/common-fetch-action.ts b/web_src/js/features/common-fetch-action.ts index 0caa27c0e2..a6901756f6 100644 --- a/web_src/js/features/common-fetch-action.ts +++ b/web_src/js/features/common-fetch-action.ts @@ -122,6 +122,6 @@ async function linkAction(el: HTMLElement, e: Event) { } export function initGlobalFetchAction() { - addDelegatedEventListener(document, 'click', '.form-fetch-action', formFetchAction); + addDelegatedEventListener(document, 'submit', '.form-fetch-action', formFetchAction); addDelegatedEventListener(document, 'click', '.link-action', linkAction); }