Skip to content

Not able to drop calendar cards to the column which sits just above the columns having cards. #24081

Description

@git-init-priyanshu

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 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.

Metadata

Metadata

Assignees

Type

Fields

Priority

None yet

Dev status

None yet

Start date

None yet

Target date

None yet

Quarter

None yet

Projects

Status
In project

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions