Clear the text layer container when cancelling rendering

It fixes #21217.
This commit is contained in:
Calixte Denizet 2026-05-04 14:36:00 +02:00
parent a55cec4a0f
commit 82f55e7dd9
No known key found for this signature in database
GPG Key ID: 0C5442631EE0691F

View File

@ -155,6 +155,8 @@ class TextLayerBuilder {
cancel() {
this.#textLayer?.cancel();
this.#textLayer = null;
this.#renderingDone = false;
this.div.replaceChildren();
this.highlighter?.disable();
this.accessibilityManager?.disable();