react-spectrum
a32c05e3 - TableView and ListView skip focusing when empty, but have a focusable child (#3581)

Commit
3 years ago
TableView and ListView skip focusing when empty, but have a focusable child (#3581) * TableView doesn't get focus when empty, but there is a link * Refactor plus getting to work with ListView and Virtualizer components * some small improvments and lint type fixes * making lint and test pass for a WIP build * reverting skipped tests * refactored useTabbableChildre to not use a MutationObserver * Factoring in empty collection to new Virtualizer tabIndex logic * improving fragile test and making sure a hook is always called * moving hook to fix circular dependancy and adding listview test * refactored new hook to use hooks useState and useEffect * refactoring hook to return boolean for tabbable child existence instead of setting tabIndex * removing code that didn't fix a test * fixing lint warning useEffect dependencies Co-authored-by: Robert Snow <rsnow@adobe.com>
Author
Parents
Loading