Skip to content

Commit a2d4b25

Browse files
Merge pull request #20212 from calixteman/reset_mode
Reset editing mode when changing the pdf document
2 parents 13ba311 + 3e01ee9 commit a2d4b25

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)