Skip to content

Commit

Permalink
fix column pinning when virtualization is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
KenanYusuf committed Aug 28, 2024
1 parent 5f96a3a commit 501b648
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const useGridColumnHeaders = (props: UseGridColumnHeadersProps) => {
maxLastColumn = visibleColumns.length,
} = params || {};

const firstColumnToRender = !hasVirtualization ? 0 : currentContext.firstColumnIndex;
const firstColumnToRender = currentContext.firstColumnIndex;
const lastColumnToRender = !hasVirtualization ? maxLastColumn : currentContext.lastColumnIndex;
const renderedColumns = visibleColumns.slice(firstColumnToRender, lastColumnToRender);

Expand Down

0 comments on commit 501b648

Please sign in to comment.