fix(11): wire handleDragEnd to Reorder.Group for active threads

onPointerUp was incorrectly placed on the resolved-thread div instead
of the active-thread Reorder.Group, causing drag reorder to not persist.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-16 22:36:40 +01:00
parent 4304d0fcd7
commit 7e06c8526b

View File

@@ -195,6 +195,7 @@ function ThreadDetailPage() {
axis="y"
values={displayItems}
onReorder={setTempItems}
onPointerUp={handleDragEnd}
className="flex flex-col gap-2"
>
{displayItems.map((candidate, index) => (
@@ -213,7 +214,7 @@ function ThreadDetailPage() {
))}
</Reorder.Group>
) : (
<div className="flex flex-col gap-2" onPointerUp={handleDragEnd}>
<div className="flex flex-col gap-2">
{displayItems.map((candidate, index) => (
<CandidateListItem
key={candidate.id}