material-react-table 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -980,7 +980,7 @@ const MRT_TableBodyRow = ({ columnVirtualizer, measureElement, numRows, pinnedRo
980
980
  rowIndex,
981
981
  rowRef,
982
982
  table,
983
- virtualIndex: columnVirtualizer
983
+ virtualColumnIndex: columnVirtualizer
984
984
  ? cellOrVirtualCell.index
985
985
  : undefined,
986
986
  };
@@ -1566,7 +1566,7 @@ const MRT_SelectCheckbox = (_a) => {
1566
1566
  ? table.getIsAllPageRowsSelected()
1567
1567
  : table.getIsAllRowsSelected()
1568
1568
  : undefined;
1569
- const commonProps = Object.assign(Object.assign({ checked: selectAll ? allRowsSelected : row === null || row === void 0 ? void 0 : row.getIsSelected(), disabled: isLoading || (row && !row.getCanSelect()), inputProps: {
1569
+ const commonProps = Object.assign(Object.assign({ checked: selectAll ? allRowsSelected : row === null || row === void 0 ? void 0 : row.getIsSelected(), disabled: isLoading || (row && !row.getCanSelect()) || (row === null || row === void 0 ? void 0 : row.id) === 'mrt-row-create', inputProps: {
1570
1570
  'aria-label': selectAll
1571
1571
  ? localization.toggleSelectAll
1572
1572
  : localization.toggleSelectRow,