Revert "focus is set on the first available element #1284"

This reverts commit 34b13d13f2.
This commit is contained in:
daria 2024-02-08 15:41:33 +02:00
parent de04ce6838
commit 803e4fc069
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}