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