Просмотр исходного кода

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

Joseph Campuzano 1 месяц назад
Родитель
Сommit
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)
                         }}
                       >