From 04343fbc2e395933e859b8e4669ab22c590d81b2 Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Mon, 26 May 2025 00:17:52 +0800 Subject: [PATCH] Fix: Automatically close modal when dropdown is dismissed --- apps/client/src/widgets/dialogs/note_type_chooser.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/src/widgets/dialogs/note_type_chooser.ts b/apps/client/src/widgets/dialogs/note_type_chooser.ts index 5e9b7bdf1..927e2f174 100644 --- a/apps/client/src/widgets/dialogs/note_type_chooser.ts +++ b/apps/client/src/widgets/dialogs/note_type_chooser.ts @@ -110,6 +110,8 @@ export default class NoteTypeChooserDialog extends BasicWidget { //@ts-ignore if (e.clickEvent) { e.preventDefault(); + } else { + this.modal.hide(); } }); }