From c20eb72285efd256b4725015202071fe67056071 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 31 Mar 2023 01:53:51 +0800 Subject: Fix dropdown direction behavior (#23806) Close #23803 More details in the comment. ![image](https://user-images.githubusercontent.com/2114189/228728786-7ec942b0-1f21-432d-93eb-575c77508b14.png) ![image](https://user-images.githubusercontent.com/2114189/228728825-62afb85e-7bfb-4702-a8bc-6c2160429978.png) --- web_src/js/modules/fomantic.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'web_src/js/modules') diff --git a/web_src/js/modules/fomantic.js b/web_src/js/modules/fomantic.js index 218166249f..2109ff1726 100644 --- a/web_src/js/modules/fomantic.js +++ b/web_src/js/modules/fomantic.js @@ -9,10 +9,6 @@ export function initGiteaFomantic() { // Disable the behavior of fomantic to toggle the checkbox when you press enter on a checkbox element. $.fn.checkbox.settings.enableEnterKey = false; - // Prevent Fomantic from guessing the popup direction. - // Otherwise, if the viewport height is small, Fomantic would show the popup upward, - // if the dropdown is at the beginning of the page, then the top part would be clipped by the window view, eg: Issue List "Sort" dropdown - $.fn.dropdown.settings.direction = 'downward'; // By default, use "exact match" for full text search $.fn.dropdown.settings.fullTextSearch = 'exact'; // Do not use "cursor: pointer" for dropdown labels -- cgit v1.2.3