From 504afcc5c6da06d263bf364ef3ed2c3f174c3f67 Mon Sep 17 00:00:00 2001 From: Jared Scott Date: Thu, 19 Sep 2024 21:23:46 +0800 Subject: [PATCH] fix: #7200 Fix Drag Selection for Datatable (#7217) * fix: #7200 Fix Drag Selection for Datatable * fix: #7200 Don't restructure `originalEvent` in `allowRowDrag`, just pass the full event through from `onRowDragStart` --- components/lib/datatable/TableBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/datatable/TableBody.js b/components/lib/datatable/TableBody.js index 2a86b36dff..aefc7a0836 100644 --- a/components/lib/datatable/TableBody.js +++ b/components/lib/datatable/TableBody.js @@ -668,7 +668,7 @@ export const TableBody = React.memo( const onRowDragStart = (e) => { const { originalEvent: event, index } = e; - if (allowRowDrag(event)) { + if (allowRowDrag(e)) { rowDragging.current = true; draggedRowIndex.current = index; event.dataTransfer.setData('text', 'b'); // For firefox