diff --git a/packages/mantine-react-table/src/components/body/MRT_TableBodyCell.tsx b/packages/mantine-react-table/src/components/body/MRT_TableBodyCell.tsx index 6ee5ef2b5..007b77a61 100644 --- a/packages/mantine-react-table/src/components/body/MRT_TableBodyCell.tsx +++ b/packages/mantine-react-table/src/components/body/MRT_TableBodyCell.tsx @@ -195,7 +195,7 @@ export const MRT_TableBodyCell = ({ data-dragging-column={isDraggingColumn || undefined} data-first-right-pinned={ (isColumnPinned === 'right' && - column.getIsLastColumn(isColumnPinned)) || + column.getIsFirstColumn(isColumnPinned)) || undefined } data-hovered-column-target={isHoveredColumn || undefined} diff --git a/packages/mantine-react-table/src/components/footer/MRT_TableFooterCell.tsx b/packages/mantine-react-table/src/components/footer/MRT_TableFooterCell.tsx index 0b9d054c2..e3ad98760 100644 --- a/packages/mantine-react-table/src/components/footer/MRT_TableFooterCell.tsx +++ b/packages/mantine-react-table/src/components/footer/MRT_TableFooterCell.tsx @@ -64,7 +64,7 @@ export const MRT_TableFooterCell = ({ data-column-pinned={isColumnPinned || undefined} data-first-right-pinned={ (isColumnPinned === 'right' && - column.getIsLastColumn(isColumnPinned)) || + column.getIsFirstColumn(isColumnPinned)) || undefined } data-index={renderedColumnIndex} diff --git a/packages/mantine-react-table/src/components/head/MRT_TableHeadCell.tsx b/packages/mantine-react-table/src/components/head/MRT_TableHeadCell.tsx index b98ea8fac..d56525886 100644 --- a/packages/mantine-react-table/src/components/head/MRT_TableHeadCell.tsx +++ b/packages/mantine-react-table/src/components/head/MRT_TableHeadCell.tsx @@ -140,7 +140,7 @@ export const MRT_TableHeadCell = ({ data-dragging-column={isDraggingColumn || undefined} data-first-right-pinned={ (isColumnPinned === 'right' && - column.getIsLastColumn(isColumnPinned)) || + column.getIsFirstColumn(isColumnPinned)) || undefined } data-hovered-column-target={isHoveredColumn || undefined}