Patch #42440 ยป redmine-org-4689b38-Fix project selector focus by targeting first selected element.patch
| app/assets/javascripts/application.js | ||
|---|---|---|
| 775 | 775 |
drdn.addClass("expanded");
|
| 776 | 776 |
if ($(this).parent('#project-jump').length) {
|
| 777 | 777 |
selected = $('.drdn-items a.selected'); // Store selected project
|
| 778 |
selected.focus(); // Calling focus to scroll to selected project |
|
| 778 |
selected.first().focus(); // Calling focus to scroll to selected project
|
|
| 779 | 779 |
} |
| 780 | 780 |
if (!isMobile()) {
|
| 781 | 781 |
drdn.find(".autocomplete").focus();
|