Skip to content

Commit

Permalink
[DataGridPro] Change cursor when dragging column (#7725)
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 authored Feb 9, 2023
1 parent d532b54 commit 5e15293
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export const useGridColumnReorder = (

dragColNode.current = event.currentTarget;
dragColNode.current.classList.add(classes.columnHeaderDragging);

if (event.dataTransfer) {
event.dataTransfer.effectAllowed = 'move';
}
apiRef.current.setState((state) => ({
...state,
columnReorder: { ...state.columnReorder, dragCol: params.field },
Expand Down

0 comments on commit 5e15293

Please sign in to comment.