Skip to content

Commit a1d9f13

Browse files
Merge pull request #21219 from calixteman/issue21217
Clear the text layer container when cancelling rendering
2 parents 5967f72 + 82f55e7 commit a1d9f13

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

web/text_layer_builder.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ class TextLayerBuilder {
155155
cancel() {
156156
this.#textLayer?.cancel();
157157
this.#textLayer = null;
158+
this.#renderingDone = false;
159+
this.div.replaceChildren();
158160

159161
this.highlighter?.disable();
160162
this.accessibilityManager?.disable();

0 commit comments

Comments
 (0)