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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.3.0",
2
+ "version": "2.3.1",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
@@ -219,7 +219,7 @@ export const MRT_TableBodyRow = <TData extends MRT_RowData>({
219
219
  rowIndex,
220
220
  rowRef,
221
221
  table,
222
- virtualIndex: columnVirtualizer
222
+ virtualColumnIndex: columnVirtualizer
223
223
  ? (cellOrVirtualCell as VirtualItem).index
224
224
  : undefined,
225
225
  };
@@ -51,7 +51,8 @@ export const MRT_SelectCheckbox = <TData extends MRT_RowData>({
51
51
 
52
52
  const commonProps = {
53
53
  checked: selectAll ? allRowsSelected : row?.getIsSelected(),
54
- disabled: isLoading || (row && !row.getCanSelect()),
54
+ disabled:
55
+ isLoading || (row && !row.getCanSelect()) || row?.id === 'mrt-row-create',
55
56
  inputProps: {
56
57
  'aria-label': selectAll
57
58
  ? localization.toggleSelectAll