Merge pull request #16675 from Snuffleupagus/pr-16659-followup

Re-enable editing, if necessary, when exiting PresentationMode (PR 16659 follow-up)
This commit is contained in:
Jonas Jenwald 2023-07-12 21:41:43 +02:00 committed by GitHub
commit 040d5bb294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,9 @@ class PDFPresentationMode {
this.pdfViewer.currentPageNumber = pageNumber;
if (this.#args.annotationEditorMode !== null) {
this.pdfViewer.annotationEditorMode = this.#args.annotationEditorMode;
this.pdfViewer.annotationEditorMode = {
mode: this.#args.annotationEditorMode,
};
}
this.#args = null;
}, 0);