Patch #42440 ยป redmine-org-4689b38-Fix project selector focus by targeting first selected element.patch
| app/assets/javascripts/application.js | ||
|---|---|---|
|
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();
|
||