Skip to content

Commit 3e01ee9

Browse files
committed
Reset editing mode when changing the pdf document
1 parent 13ba311 commit 3e01ee9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/pdf_viewer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@ class PDFViewer {
873873
this.#annotationEditorUIManager?.destroy();
874874
this.#annotationEditorUIManager = null;
875875

876+
this.#annotationEditorMode = AnnotationEditorType.NONE;
877+
876878
this.#printingAllowed = true;
877879
}
878880

0 commit comments

Comments
 (0)