mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
JS: Fix login autofocus
This commit is contained in:
parent
ba9aeada60
commit
b5cbf49433
@ -15,7 +15,9 @@
|
||||
|
||||
Autofocus.prototype.onRendered = function(e) {
|
||||
setTimeout(function() {
|
||||
if (document.activeElement === e.target) {
|
||||
if (document.activeElement === e.target
|
||||
|| document.activeElement === document.body
|
||||
) {
|
||||
$(e.target).find('.autofocus').focus();
|
||||
}
|
||||
}, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user