summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorJoseph Campuzano <[email protected]>2026-01-19 10:43:27 -0600
committerGitHub <[email protected]>2026-01-19 10:43:27 -0600
commit72cb7ccc00438625e58900efa780a004eda5a826 (patch)
tree0807bcb01cce1caff744d2da32ea92e7928dc814 /packages
parent4ee540309f41d6eaa65d0d4dd7c70fea71c973d1 (diff)
downloadopencode-72cb7ccc00438625e58900efa780a004eda5a826.tar.gz
opencode-72cb7ccc00438625e58900efa780a004eda5a826.zip
fix(app): list component jumping when mouse happens to be under the list and keyboard navigating. (#9435)
Diffstat (limited to 'packages')
-rw-r--r--packages/ui/src/components/list.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx
index 631b3e33a..bfe3440ea 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)
}}
>