Skip to content

Commit

Permalink
[DataGridPro] Change cursor when dragging column (#7878)
Browse files Browse the repository at this point in the history
Co-authored-by: sai chand <60743144+sai6855@users.noreply.github.com>
  • Loading branch information
m4theushw and sai6855 authored Feb 9, 2023
1 parent d53e386 commit 784ead8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,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 784ead8

Please sign in to comment.