js: Preserve scroll position if focus is forced to a particular element

This commit is contained in:
Johannes Meyer 2020-01-16 15:54:17 +01:00
parent 8bc84a5f9e
commit 3464455021
1 changed files with 1 additions and 1 deletions

View File

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