mirror of
https://github.com/usememos/memos.git
synced 2025-12-11 06:36:02 +08:00
fix(ui): fix todo command does nothing
This commit is contained in:
parent
4668c4714b
commit
e74154a293
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue