material-react-table 2.0.0-beta.2 → 2.0.0-beta.3

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.0.0-beta.2",
2
+ "version": "2.0.0-beta.3",
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.",
@@ -186,7 +186,7 @@ export const MRT_TableHeadCell = <TData extends MRT_RowData>({
186
186
  ...draggingBorders,
187
187
  })}
188
188
  >
189
- {header.isPlaceholder ? null : (
189
+ {header.isPlaceholder || column.id === 'mrt-row-spacer' ? null : (
190
190
  <Box
191
191
  className="Mui-TableHeadCell-Content"
192
192
  sx={{
@@ -139,7 +139,7 @@ export const useMRT_DisplayColumns = <TData extends MRT_RowData>({
139
139
  ) && {
140
140
  columnDefType: 'display',
141
141
  header: '',
142
- id: 'spacer',
142
+ id: 'mrt-row-spacer',
143
143
  muiTableBodyCellProps: blankColProps,
144
144
  muiTableFooterCellProps: blankColProps,
145
145
  muiTableHeadCellProps: blankColProps,
@@ -104,7 +104,7 @@ export const MRT_EditCellTextField = <TData extends MRT_RowData>({
104
104
  }
105
105
  }}
106
106
  label={
107
- !['custom', 'modal'].includes(
107
+ ['custom', 'modal'].includes(
108
108
  (isCreating ? createDisplayMode : editDisplayMode) as string,
109
109
  )
110
110
  ? columnDef.header