From fb643a1ade6d4bb4a31a7f9e4fdaed4667f34403 Mon Sep 17 00:00:00 2001 From: jubnl Date: Tue, 31 Mar 2026 01:32:20 +0200 Subject: [PATCH] fix: stop drop event bubbling causing duplicate place assignment --- client/src/components/Planner/DayPlanSidebar.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx index ce0ebec..9bc511a 100644 --- a/client/src/components/Planner/DayPlanSidebar.tsx +++ b/client/src/components/Planner/DayPlanSidebar.tsx @@ -632,6 +632,7 @@ export default function DayPlanSidebar({ const handleDropOnDay = (e, dayId) => { e.preventDefault() + e.stopPropagation() setDragOverDayId(null) const { placeId, assignmentId, noteId, fromDayId } = getDragData(e) if (placeId) { @@ -886,6 +887,7 @@ export default function DayPlanSidebar({ onDragOver={e => { e.preventDefault(); const cur = dropTargetRef.current; if (draggingId && (!cur || cur.startsWith('end-'))) setDropTargetKey(`end-${day.id}`) }} onDrop={e => { e.preventDefault() + e.stopPropagation() const { placeId, assignmentId, noteId, fromDayId } = getDragData(e) // Drop on transport card (detected via dropTargetRef for sync accuracy) if (dropTargetRef.current?.startsWith('transport-')) {