summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ui/src/hooks')
-rw-r--r--packages/ui/src/hooks/use-filtered-list.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/ui/src/hooks/use-filtered-list.tsx b/packages/ui/src/hooks/use-filtered-list.tsx
index b8a55000e..8595af529 100644
--- a/packages/ui/src/hooks/use-filtered-list.tsx
+++ b/packages/ui/src/hooks/use-filtered-list.tsx
@@ -77,7 +77,7 @@ export function useFilteredList<T>(props: FilteredListProps<T>) {
}
const onKeyDown = (event: KeyboardEvent) => {
- if (event.key === "Enter") {
+ if (event.key === "Enter" && !event.isComposing) {
event.preventDefault()
const selectedIndex = flat().findIndex((x) => props.key(x) === list.active())
const selected = flat()[selectedIndex]