From c918521d01b00396e395cd0b749bab0c340fa553 Mon Sep 17 00:00:00 2001
From: Gusted <williamzijl7@hotmail.com>
Date: Tue, 22 Feb 2022 19:43:11 +0000
Subject: [PATCH] Fix behavior or checkbox submission. (#18851)

---
 web_src/js/index.js | 2 ++
 1 file changed, 2 insertions(+)

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();