Merge pull request #17011 from Snuffleupagus/altText-destroy-keep-#currentEditor

Don't reset `this.#currentEditor` when destroying the dialog
This commit is contained in:
Jonas Jenwald 2023-09-22 22:18:02 +02:00 committed by GitHub
commit d555f351d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,8 +307,7 @@ class AltTextManager {
} }
destroy() { destroy() {
this.#currentEditor = null; this.#uiManager = null; // Avoid re-adding the edit listeners.
this.#uiManager = null;
this.#finish(); this.#finish();
this.#svgElement?.remove(); this.#svgElement?.remove();
this.#svgElement = this.#rectElement = null; this.#svgElement = this.#rectElement = null;