mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
fix: ignore IME composition to avoid accidental selection (#2100)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-ui': patch
|
||||
---
|
||||
|
||||
Ignore IME composition to avoid accidental selection
|
||||
@@ -227,7 +227,7 @@ export function SearchDialogList({
|
||||
};
|
||||
|
||||
const onKey = useEffectEvent((e: KeyboardEvent) => {
|
||||
if (!items) return;
|
||||
if (!items || e.isComposing) return;
|
||||
|
||||
if (e.key === 'ArrowDown' || e.key == 'ArrowUp') {
|
||||
let idx = items.findIndex((item) => item.id === active);
|
||||
|
||||
Reference in New Issue
Block a user