js: Preserve scroll position if focus is forced to a particular element
This commit is contained in:
parent
8bc84a5f9e
commit
3464455021
|
@ -1077,7 +1077,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var scrollTarget = $container;
|
var scrollTarget = $container;
|
||||||
if (! forceFocus && typeof containerId !== 'undefined') {
|
if (typeof containerId !== 'undefined') {
|
||||||
if (autorefresh || autoSubmit) {
|
if (autorefresh || autoSubmit) {
|
||||||
if ($container.css('display') === 'flex') {
|
if ($container.css('display') === 'flex') {
|
||||||
var $scrollableContent = $container.children('.content');
|
var $scrollableContent = $container.children('.content');
|
||||||
|
|
Loading…
Reference in New Issue