mirror of https://github.com/usememos/memos.git
fix(ui): fix todo command does nothing (#5329)
This commit is contained in:
parent
618db89f4f
commit
9ea27ee61f
|
|
@ -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