From 3464455021860d0f0dd21eb4c487bbd6b9988141 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 16 Jan 2020 15:54:17 +0100 Subject: [PATCH] js: Preserve scroll position if focus is forced to a particular element --- public/js/icinga/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 35dfc5463..b8d40b0fb 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -1077,7 +1077,7 @@ } var scrollTarget = $container; - if (! forceFocus && typeof containerId !== 'undefined') { + if (typeof containerId !== 'undefined') { if (autorefresh || autoSubmit) { if ($container.css('display') === 'flex') { var $scrollableContent = $container.children('.content');