From 559ea194f28ab93c192dc6eb025e307017449de2 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 7 Jul 2023 19:13:48 +0200 Subject: [PATCH] Don't try to hide an already invisible PopupAnnotation (issue 16660) --- src/display/annotation_layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js index f9724575c..b44633e11 100644 --- a/src/display/annotation_layer.js +++ b/src/display/annotation_layer.js @@ -2157,7 +2157,7 @@ class PopupElement { */ #hide() { this.#container.classList.remove("focused"); - if (this.#pinned) { + if (this.#pinned || !this.isVisible) { return; } this.#container.hidden = true;