mirror of https://github.com/usememos/memos.git
fix(ui): fix todo command does nothing
This commit is contained in:
parent
4668c4714b
commit
e74154a293
|
|
@ -105,7 +105,8 @@ export function useSuggestions<T>({
|
||||||
if (["Enter", "Tab"].includes(e.code)) {
|
if (["Enter", "Tab"].includes(e.code)) {
|
||||||
handleAutocomplete(suggestions[selected]);
|
handleAutocomplete(suggestions[selected]);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
// Prevent other listeners to be executed
|
||||||
|
e.stopImmediatePropagation();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue