diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 78f753d1b..733c94d20 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -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') {