react-spectrum
a0a88da2 - ListView dnd testing followups (#3181)

Commit
3 years ago
ListView dnd testing followups (#3181) * fixing listview dnd issues with disabled rows and selected items removed from the collection fixes an issue where disabled rows were focusable via screen reader when in a drag session. Also fixes an issue where drag and drop events would contain all selected keys even if said keys dont exist in the draggable collection * calculating isFocused in useEffect in case manager.focusedKey is updated in a side effect fixes case where the wrong key is focused after dropping into a list. useDroppableCollection updates focused key in a useLayoutEffect which causes the render calculated isFocused in useSelectableItem to be out of date and causes the wrong item to get focused * adding test for focusing the dropped item * attempting to fix build on 16/17 * minimum amount of await run all timer calls * updating to clear promise queue * adding tab index check
Author
Parents
Loading