mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
web: fixed focus after modal window
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user