mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-05 17:51:03 +02:00
Clear the text layer container when cancelling rendering
It fixes #21217.
This commit is contained in:
parent
a55cec4a0f
commit
82f55e7dd9
@ -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