fix(ui): fix todo command does nothing

This commit is contained in:
Spaghetti 2025-12-08 16:51:10 +00:00
parent 4668c4714b
commit e74154a293
1 changed files with 2 additions and 1 deletions

View File

@ -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();
} }
}; };