From 03331033ea7105f4f7adbae639c22efa98fa8017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 10 Dec 2021 00:12:52 +0100 Subject: Better handling of popup visibility. --- static/popup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/popup.ts') 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) } } -- cgit v1.2.3