소스 검색

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

Joseph Campuzano 10 달 전
부모
커밋
72cb7ccc00
1개의 변경된 파일과 1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/ui/src/components/list.tsx

+ 1 - 0
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)
                         }}
                       >