Skip to content

Commit

Permalink
do not show row reorder handle for pinned rows
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Jun 22, 2022
1 parent b7fbab8 commit 8e2534e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ const GridRowReorderCell = (params: GridRenderCellParams) => {

export { GridRowReorderCell };

export const renderRowReorderCell = (params: GridRenderCellParams) => (
<GridRowReorderCell {...params} />
);
export const renderRowReorderCell = (params: GridRenderCellParams) => {
if (params.rowNode.isPinned) {
return null;
}
return <GridRowReorderCell {...params} />;
};

0 comments on commit 8e2534e

Please sign in to comment.