Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 committed Sep 20, 2024
1 parent de57d31 commit 3a7ece8
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ export const useGridColumnReorder = (
event.stopPropagation();

clearTimeout(removeDnDStylesTimeout.current);
// For more information check here https://github.com/mui/mui-x/issues/14678
if(dragColNode.current!.classList.contains(classes.columnHeaderDragging)){

// For more information check here https://github.com/mui/mui-x/issues/14678
if (dragColNode.current!.classList.contains(classes.columnHeaderDragging)) {
dragColNode.current!.classList.remove(classes.columnHeaderDragging);
}

Expand Down Expand Up @@ -341,7 +341,13 @@ export const useGridColumnReorder = (
}));
apiRef.current.forceUpdate();
},
[apiRef, props.disableColumnReorder, props.keepColumnPositionIfDraggedOutside, logger, classes.columnHeaderDragging],
[
apiRef,
props.disableColumnReorder,
props.keepColumnPositionIfDraggedOutside,
logger,
classes.columnHeaderDragging,
],
);

useGridApiEventHandler(apiRef, 'columnHeaderDragStart', handleDragStart);
Expand Down

0 comments on commit 3a7ece8

Please sign in to comment.