From cd65a0e02053c4426b00b79be9c60afe6195cd68 Mon Sep 17 00:00:00 2001 From: Revertron Date: Fri, 30 Apr 2021 15:21:34 +0200 Subject: [PATCH] Fixes for zones menu on freaking Arch. --- Cargo.toml | 2 +- src/webview/scripts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 24b5dd7..82dd517 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alfis" -version = "0.4.35" +version = "0.4.36" authors = ["Revertron "] edition = "2018" build = "build.rs" diff --git a/src/webview/scripts.js b/src/webview/scripts.js index e5eb60b..4734f72 100644 --- a/src/webview/scripts.js +++ b/src/webview/scripts.js @@ -490,7 +490,7 @@ function keystoreChanged(path, pub_key, hash) { function closeZonesDropdown() { var active = document.activeElement; - if (active == null || active.id != 'zones-menu') { + if (active == null || (active.id != 'zones-menu' && active.tagName != 'BODY')) { document.getElementById("zones-dropdown").className = "dropdown"; } }