diff --git a/components/lib/datatable/TableBody.js b/components/lib/datatable/TableBody.js index deef394622..aefc7a0836 100644 --- a/components/lib/datatable/TableBody.js +++ b/components/lib/datatable/TableBody.js @@ -151,7 +151,7 @@ export const TableBody = React.memo( }; const allowRowDrag = (event) => { - return (!allowCellSelection() && allowDrag({ originalEvent: event })) || props.reorderableRows; + return (!allowCellSelection() && allowDrag(event)) || props.reorderableRows; }; const allowCellDrag = (event) => { @@ -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