aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-02-22 19:43:11 +0000
committerGitHub <noreply@github.com>2022-02-22 14:43:11 -0500
commitc918521d01b00396e395cd0b749bab0c340fa553 (patch)
tree181ec004f8d29e4eeae61c376975bf46f92ea2f7 /web_src/js
parent704bdf89a2f4ede780e4ac3ed9599c4b975f316c (diff)
downloadgitea-c918521d01b00396e395cd0b749bab0c340fa553.tar.gz
gitea-c918521d01b00396e395cd0b749bab0c340fa553.zip
Fix behavior or checkbox submission. (#18851)
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index c9a7949d5a..b7eba5e664 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -78,6 +78,8 @@ import {initRepoCommentForm, initRepository} from './features/repo-legacy.js';
// Silence fomantic's error logging when tabs are used without a target content element
$.fn.tab.settings.silent = true;
+// Disable the behavior of fomantic to toggle the checkbox when you press enter on a checkbox element.
+$.fn.checkbox.settings.enableEnterKey = false;
initVueEnv();