mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +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"));
|
||||
}
|
||||
|
||||
if (el_last_window === el_except) {
|
||||
if (!el_last_window || el_last_window === el_except) {
|
||||
var max_z_index = 0;
|
||||
__windows.forEach(function(el_window) {
|
||||
var z_index = parseInt(window.getComputedStyle(el_window, null).zIndex) || 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user