Skip to content

Commit 72cb7cc

Browse files
authored
fix(app): list component jumping when mouse happens to be under the list and keyboard navigating. (#9435)
1 parent 4ee5403 commit 72cb7cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/ui/src/components/list.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
206206
setActive(props.key(item))
207207
}}
208208
onMouseLeave={() => {
209+
if (!store.mouseActive) return;
209210
setActive(null)
210211
}}
211212
>

0 commit comments

Comments
 (0)