mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
web: fixed focus after modal window
This commit is contained in:
parent
1897d72b51
commit
8c3f604e4a
@ -299,7 +299,7 @@ function Ui() {
|
|||||||
el_last_window = (document.activeElement.closest(".modal-window") || document.activeElement.closest(".window"));
|
el_last_window = (document.activeElement.closest(".modal-window") || document.activeElement.closest(".window"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (el_last_window === el_except) {
|
if (!el_last_window || el_last_window === el_except) {
|
||||||
var max_z_index = 0;
|
var max_z_index = 0;
|
||||||
__windows.forEach(function(el_window) {
|
__windows.forEach(function(el_window) {
|
||||||
var z_index = parseInt(window.getComputedStyle(el_window, null).zIndex) || 0;
|
var z_index = parseInt(window.getComputedStyle(el_window, null).zIndex) || 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user