aboutsummaryrefslogtreecommitdiff
path: root/static/popup.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-10 00:12:52 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-10 00:12:52 +0100
commit03331033ea7105f4f7adbae639c22efa98fa8017 (patch)
tree94c84c64fceb05f7cbf2c414a57af05d7bf2bc29 /static/popup.ts
parentPropagate recurring events to frontend. (diff)
downloadcalp-03331033ea7105f4f7adbae639c22efa98fa8017.tar.gz
calp-03331033ea7105f4f7adbae639c22efa98fa8017.tar.xz
Better handling of popup visibility.
Diffstat (limited to '')
-rw-r--r--static/popup.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/popup.ts b/static/popup.ts
index 1635fab2..69edbb6e 100644
--- a/static/popup.ts
+++ b/static/popup.ts
@@ -39,7 +39,7 @@ function close_popup(popup: PopupElement): void {
/* hides all popups */
function close_all_popups() {
- for (let popup of document.querySelectorAll("popup-element.visible")) {
+ for (let popup of document.querySelectorAll("popup-element[visible]")) {
close_popup(popup as PopupElement)
}
}