Skip to content

The open source coding agent.

TypeScript

fix(app): list component jumping when mouse happens to be under the list and keyboard navigating. (#9435)

Joseph Campuzano72cb7ccc0043
diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx
index 631b3e33a29..bfe3440ea7f 100644
--- a/packages/ui/src/components/list.tsx
+++ b/packages/ui/src/components/list.tsx
@@ -206,6 +206,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
setActive(props.key(item))
}}
onMouseLeave={() => {
+ if (!store.mouseActive) return;
setActive(null)
}}
>