mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 14:24:41 +02:00
JS: Re-focus visible elements only
Don't try to re-focus links from dropdown tabs example because they're no longer visible if the page has been loaded.
This commit is contained in:
parent
4251e758a7
commit
7a6d61ceaa
@ -809,7 +809,7 @@
|
||||
setTimeout(function() {
|
||||
var $activeElement = $(activeElementPath);
|
||||
|
||||
if ($activeElement.length) {
|
||||
if ($activeElement.length && $activeElement.is(':visible')) {
|
||||
$activeElement.focus();
|
||||
} else if (! autorefresh) {
|
||||
if (typeof $container.attr('tabindex') === 'undefined') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user