From 982d136151b1a696a8ce69a9b5a7ff52073bb867 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 15 Sep 2025 19:42:31 +0300 Subject: [PATCH] fix(client): menu stays active while printing --- apps/client/src/widgets/note_detail.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/note_detail.ts b/apps/client/src/widgets/note_detail.ts index bb66c39e6..bf06e30ab 100644 --- a/apps/client/src/widgets/note_detail.ts +++ b/apps/client/src/widgets/note_detail.ts @@ -297,7 +297,8 @@ export default class NoteDetailWidget extends NoteContextAwareWidget { return; } - window.print(); + // Trigger in timeout to dismiss the menu while printing. + setTimeout(window.print, 0); } async exportAsPdfEvent() {