From cd5d4ccff72b470606c7fc0ceef762b53291fbf4 Mon Sep 17 00:00:00 2001 From: bsholmes Date: Thu, 21 Dec 2023 15:45:46 -0800 Subject: [PATCH] comment --- src/components/Table/GridTable.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Table/GridTable.tsx b/src/components/Table/GridTable.tsx index 67e4693fb..ee0a47059 100644 --- a/src/components/Table/GridTable.tsx +++ b/src/components/Table/GridTable.tsx @@ -301,6 +301,7 @@ export function GridTable = an // Get the flat list or rows from the header down... visibleRows.forEach((rs) => { + // only pass through events if the row is draggable and the user has provided a callback const dragEventHandler = (callback: OnRowDragEvent | undefined) => (evt: DragEventType) => { if (rs.row.draggable && droppedCallback && callback) { callback({ ...rs.row }, evt);