Merge pull request #17011 from Snuffleupagus/altText-destroy-keep-#currentEditor
Don't reset `this.#currentEditor` when destroying the dialog
This commit is contained in:
commit
d555f351d3
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user