mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-01 20:07:22 +02:00
Merge pull request #21219 from calixteman/issue21217
Clear the text layer container when cancelling rendering
This commit is contained in:
commit
a1d9f13278
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user