diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-10 00:12:52 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-10 00:12:52 +0100 |
commit | 03331033ea7105f4f7adbae639c22efa98fa8017 (patch) | |
tree | 94c84c64fceb05f7cbf2c414a57af05d7bf2bc29 /static/popup.ts | |
parent | Propagate recurring events to frontend. (diff) | |
download | calp-03331033ea7105f4f7adbae639c22efa98fa8017.tar.gz calp-03331033ea7105f4f7adbae639c22efa98fa8017.tar.xz |
Better handling of popup visibility.
Diffstat (limited to '')
-rw-r--r-- | static/popup.ts | 2 |
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) } } |