Skip to content

Commit

Permalink
[DataGrid] Fix row-spanning in combination with column-pinning (#15368)
Browse files Browse the repository at this point in the history
Co-authored-by: Bilal Shafi <bilalshafidev@gmail.com>
  • Loading branch information
2 people authored and web-flow committed Nov 18, 2024
1 parent e430b20 commit e1693b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/x-data-grid/src/components/cell/GridCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ const GridCell = React.forwardRef<HTMLDivElement, GridCellProps>(function GridCe
if (rowSpan > 1) {
cellStyle.height = `calc(var(--height) * ${rowSpan})`;
cellStyle.zIndex = 5;

if (isLeftPinned || isRightPinned) {
cellStyle.zIndex = 6;
}
}

return cellStyle;
Expand Down

0 comments on commit e1693b8

Please sign in to comment.