You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the month calendar, a card cannot be dropped onto a day column that sits directly above a day column containing cards. Even when you hover over the day column you want, the drop target still points to the day column containing cards.
Example:
720p.mov
Expected behavior
The drop target should point to the day column you are hovering over, even when it sits directly above a day column containing cards.
Technical inputs
This happens because the sortable cards (DragDropItemSortableCell) have a collisionPriority of 3, while the day column has a lower collisionPriority of 1. So when you drag a card over the day column above, the card's collision wins.
We never pass a collisionDetector to useSortable for the cards, so they use defaultCollisionDetection. That detector runs pointerIntersection first and falls back to shapeIntersection, which matches on rectangle overlap instead of pointer position. The dragged card still overlaps the cards below, so that fallback makes the drop target land in the day column containing cards.
Bug Description
In the month calendar, a card cannot be dropped onto a day column that sits directly above a day column containing cards. Even when you hover over the day column you want, the drop target still points to the day column containing cards.
Example:
720p.mov
Expected behavior
The drop target should point to the day column you are hovering over, even when it sits directly above a day column containing cards.
Technical inputs
This happens because the sortable cards (
DragDropItemSortableCell) have acollisionPriorityof 3, while the day column has a lowercollisionPriorityof 1. So when you drag a card over the day column above, the card's collision wins.We never pass a
collisionDetectortouseSortablefor the cards, so they usedefaultCollisionDetection. That detector runspointerIntersectionfirst and falls back toshapeIntersection, which matches on rectangle overlap instead of pointer position. The dragged card still overlaps the cards below, so that fallback makes the drop target land in the day column containing cards.