mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
js/loader: do not steal focus placed by module
This commit is contained in:
parent
e75bfbc197
commit
ce6fa235cb
@ -827,7 +827,10 @@
|
|||||||
if (typeof $container.attr('tabindex') === 'undefined') {
|
if (typeof $container.attr('tabindex') === 'undefined') {
|
||||||
$container.attr('tabindex', -1);
|
$container.attr('tabindex', -1);
|
||||||
}
|
}
|
||||||
$container.focus();
|
// Do not touch focus in case a module or component already placed it
|
||||||
|
if ($(document.activeElement).closest('.container').attr('id') !== containerId) {
|
||||||
|
$container.focus();
|
||||||
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user