- LaneDrag / DragEnd, fixed to support Virtual Lists.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-06-30 21:58:08 -04:00
parent 4db2b73397
commit 7f75eeadb9
4 changed files with 58 additions and 61 deletions

View File

@@ -95,7 +95,8 @@ const BoardContainer = ({
fromLaneId: event.fromLaneId,
toLaneId: event.toLaneId,
cardId: event.cardId,
index: event.index
index: event.index,
event
})
);
case "UPDATE_CARDS":
@@ -239,8 +240,8 @@ const BoardContainer = ({
if (!type || type !== "lane" || !source || !destination) return;
dispatch(
actions.moveCardAcrossLanes({
fromLaneId: Number.parseInt(source.droppableId),
toLaneId: Number.parseInt(destination.droppableId),
fromLaneId: source.droppableId,
toLaneId: destination.droppableId,
cardId: draggableId,
index: destination.index
})