From e74154a293837443da2c31e86fa46ee226de7f2d Mon Sep 17 00:00:00 2001 From: Spaghetti Date: Mon, 8 Dec 2025 16:51:10 +0000 Subject: [PATCH] fix(ui): fix todo command does nothing --- web/src/components/MemoEditor/Editor/useSuggestions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/MemoEditor/Editor/useSuggestions.ts b/web/src/components/MemoEditor/Editor/useSuggestions.ts index 6c5c1e2c0..a7d84e971 100644 --- a/web/src/components/MemoEditor/Editor/useSuggestions.ts +++ b/web/src/components/MemoEditor/Editor/useSuggestions.ts @@ -105,7 +105,8 @@ export function useSuggestions({ if (["Enter", "Tab"].includes(e.code)) { handleAutocomplete(suggestions[selected]); e.preventDefault(); - e.stopPropagation(); + // Prevent other listeners to be executed + e.stopImmediatePropagation(); } };