Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix(ui): fix todo command does nothing (#5329)

spaghetti-coder9ea27ee61fce
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<T>({
if (["Enter", "Tab"].includes(e.code)) {
handleAutocomplete(suggestions[selected]);
e.preventDefault();
- e.stopPropagation();
+ // Prevent other listeners to be executed
+ e.stopImmediatePropagation();
}
};