Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 4c89aa6a78 Make dropping a dragged card on a list's HEADER move it into that list.
The card sortable's connectWith ('.js-minicards:not(.js-list-full)') only
covers each list's card-body area; .js-list-header sits in normal flow
directly above it and does not overlap it, so jQuery UI resolves no
connected container and silently cancels a drop landed precisely on the
header - the card snaps back with nothing happening.

The sortable stop handler now hit-tests the mouseup's own coordinates for a
.js-list-header ancestor and, when found, resolves the same
prevCardDom/nextCardDom/listId/targetContainer a drop at the TOP of that
list's card body would produce, so the existing card.move() mutation and
sort-repair logic are reused unchanged.

Thanks to TylerL-uxai and xet7 !

Fixes #766,
2026-09-10 21:11:34 +03:00