From ed1370a40ab9a4020db11558b26edbff2723347f Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 25 Mar 2025 23:56:44 +0000 Subject: [PATCH] Fix project selector focus by explicitly targeting the first selected item (#42440). Patch by [Agileware]Haruka Asakura (user:asakura-agileware). git-svn-id: https://svn.redmine.org/redmine/trunk@23558 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/assets/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 1314257ab..19578bee8 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -775,7 +775,7 @@ $(document).ready(function(){ drdn.addClass("expanded"); if ($(this).parent('#project-jump').length) { selected = $('.drdn-items a.selected'); // Store selected project - selected.focus(); // Calling focus to scroll to selected project + selected.first().focus(); // Calling focus to scroll to selected project } if (!isMobile()) { drdn.find(".autocomplete").focus();