From 3247a9facc1ed43248472d7a06afbda02a7d3202 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 27 Jul 2025 15:30:27 +0300 Subject: [PATCH] feat(command_palette): hide on command execution --- apps/client/src/widgets/dialogs/jump_to_note.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/dialogs/jump_to_note.ts b/apps/client/src/widgets/dialogs/jump_to_note.ts index 17a78902a..74a87a5a4 100644 --- a/apps/client/src/widgets/dialogs/jump_to_note.ts +++ b/apps/client/src/widgets/dialogs/jump_to_note.ts @@ -106,12 +106,13 @@ export default class JumpToNoteDialog extends BasicWidget { appContext.tabManager.getActiveContext()?.setNote(suggestion.notePath); }) - .on("autocomplete:commandselected", async function (event, suggestion, dataset) { + .on("autocomplete:commandselected", async (event, suggestion, dataset) => { if (!suggestion.commandId) { return false; } await commandRegistry.executeCommand(suggestion.commandId); + this.modal.hide(); }); // if you open the Jump To dialog soon after using it previously, it can often mean that you