Skip to content

Commit

Permalink
[DataGrid] Fix last separator not being hidden when grid is scrollable (
Browse files Browse the repository at this point in the history
@KenanYusuf) (#15551)

Co-authored-by: Kenan Yusuf <[email protected]>
  • Loading branch information
github-actions[bot] and KenanYusuf authored Nov 22, 2024
1 parent 22b021d commit d77dedc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export const useGridColumnHeaders = (props: UseGridColumnHeadersProps) => {
fields={headerInfo.fields}
colIndex={headerInfo.colIndex}
depth={depth}
isLastColumn={headerInfo.colIndex === visibleColumns.length - headerInfo.fields.length}
isLastColumn={index === visibleColumnGroupHeader.length - 1}
maxDepth={headerGroupingMaxDepth}
height={dimensions.groupHeaderHeight}
hasFocus={hasFocus}
Expand Down

0 comments on commit d77dedc

Please sign in to comment.