Re-enable editing, if necessary, when exiting PresentationMode (PR 16659 follow-up)
This regressed in PR 16659, when the signature of the `PDFViewer.annotationEditorMode`-setter was changed, and it currently leads to an Error being thrown when exiting PresentationMode.
This commit is contained in:
parent
73d650af3e
commit
7daa6b5fd8
@ -209,7 +209,9 @@ class PDFPresentationMode {
|
|||||||
this.pdfViewer.currentPageNumber = pageNumber;
|
this.pdfViewer.currentPageNumber = pageNumber;
|
||||||
|
|
||||||
if (this.#args.annotationEditorMode !== null) {
|
if (this.#args.annotationEditorMode !== null) {
|
||||||
this.pdfViewer.annotationEditorMode = this.#args.annotationEditorMode;
|
this.pdfViewer.annotationEditorMode = {
|
||||||
|
mode: this.#args.annotationEditorMode,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
this.#args = null;
|
this.#args = null;
|
||||||
}, 0);
|
}, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user