Skip to content

Commit

Permalink
fix: #7200 Fix Drag Selection for Datatable (#7217)
Browse files Browse the repository at this point in the history
* fix: #7200 Fix Drag Selection for Datatable

* fix: #7200

Don't restructure `originalEvent` in `allowRowDrag`, just pass the full event through from `onRowDragStart`
  • Loading branch information
gcko authored Sep 19, 2024
1 parent e49e824 commit 504afcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 504afcc

Please sign in to comment.