react-spectrum
227f79e3 - Properly hide invalid drop targets in reorderable only ListViews (#3565)

Commit
3 years ago
Properly hide invalid drop targets in reorderable only ListViews (#3565) * fixing reorder only util handler story turns out that useDroppableItems isInternal check was happening when droppableCollectionRef wasnt set yet. This specifically happens in keyboard drag and drop since we dont call useDroppableCollections onDropEnter until DragManagers beginDraggings raf fires. To sidestep this issue we use a weak map to track the containing droppable collection ref from useDroppableCollection and feed it to the droppable items within * fix dep array
Author
Parents
Loading