1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

[Editor] Don't show the alt-text button when the alt-text dialog is visible

This way, the button doens't cover the image.
This commit is contained in:
Calixte Denizet 2023-09-25 17:25:08 +02:00
parent f5367f01ca
commit eebd251552
3 changed files with 51 additions and 13 deletions

View file

@ -264,6 +264,7 @@ class AltTextManager {
this.#removeOnClickListeners();
this.#uiManager?.addEditListeners();
this.#eventBus._off("resize", this.#boundSetPosition);
this.#currentEditor.altTextFinish();
this.#currentEditor = null;
this.#uiManager = null;
}