aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-11-27 11:54:50 +0800
committerGitHub <noreply@github.com>2024-11-27 11:54:50 +0800
commit6e507c45ede1352319153e84f49f97af89823603 (patch)
treea92a59acc497fe5f4aa232b9542bf15fc4d49c84
parentf49d82309b58a7f4150633be812da499de98da1b (diff)
downloadgitea-6e507c45ede1352319153e84f49f97af89823603.tar.gz
gitea-6e507c45ede1352319153e84f49f97af89823603.zip
Fix global form submit event (#32652)
-rw-r--r--web_src/js/features/common-fetch-action.ts2
1 files changed, 1 insertions, 1 deletions
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);
}