mirror of https://github.com/xwiki-labs/cryptpad
Revert "focus is set on the first available element #1284"
This reverts commit 34b13d13f2
.
This commit is contained in:
parent
de04ce6838
commit
803e4fc069
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue