Skip to content

Commit c918521

Browse files
author
Gusted
authored
Fix behavior or checkbox submission. (#18851)
1 parent 704bdf8 commit c918521

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web_src/js/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ import {initRepoCommentForm, initRepository} from './features/repo-legacy.js';
7878

7979
// Silence fomantic's error logging when tabs are used without a target content element
8080
$.fn.tab.settings.silent = true;
81+
// Disable the behavior of fomantic to toggle the checkbox when you press enter on a checkbox element.
82+
$.fn.checkbox.settings.enableEnterKey = false;
8183

8284
initVueEnv();
8385

0 commit comments

Comments
 (0)