Merge pull request #16661 from Snuffleupagus/issue-16660

Don't try to hide an already invisible PopupAnnotation (issue 16660)
This commit is contained in:
Jonas Jenwald 2023-07-07 20:47:38 +02:00 committed by GitHub
commit c625230c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;