diff --git a/web/alt_text_manager.js b/web/alt_text_manager.js index 63a88a146..fc3b020ee 100644 --- a/web/alt_text_manager.js +++ b/web/alt_text_manager.js @@ -152,7 +152,7 @@ class AltTextManager { } #finish() { - if (this.#dialog) { + if (this.#overlayManager.active === this.#dialog) { this.#overlayManager.close(this.#dialog); } }