From 803e4fc069ed4576d507330c39ea659d488d8aae Mon Sep 17 00:00:00 2001 From: daria Date: Thu, 8 Feb 2024 15:41:33 +0200 Subject: [PATCH] Revert "focus is set on the first available element #1284" This reverts commit 34b13d13f22ed77814bac7bd5b49013c7abbc4a6. --- www/common/common-interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 1a662c4a5..fa190b943 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -1478,10 +1478,10 @@ define([ $button.removeClass('cp-toolbar-button-active'); if ($content.is(':visible')) { $button.addClass('cp-toolbar-button-active'); + $content.find(':first').focus(); var wh = $(window).height(); $content.css('max-height', Math.floor(wh - topPos - 1)+'px') $content.children(':visible').addClass('active-element'); - $content.find('.active-element').first().focus(); } else { $content.children().removeClass('active-element'); }