material-react-table 0.7.0-alpha.7 → 0.7.0-alpha.8

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": "0.7.0-alpha.7",
2
+ "version": "0.7.0-alpha.8",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI implementation of react-table, inspired by material-table and the MUI X DataGrid, written from the ground up in TypeScript.",
@@ -87,14 +87,14 @@ export const MRT_TableBodyCell: FC<Props> = ({ cell, tableInstance }) => {
87
87
  width={skeletonWidth}
88
88
  {...muiTableBodyCellSkeletonProps}
89
89
  />
90
- ) : column.columnDefType === 'display' ? (
91
- column.Cell?.({ cell, tableInstance })
92
90
  ) : cell.getIsPlaceholder() ||
93
91
  (row.getIsGrouped() &&
94
92
  column.id !==
95
93
  row.groupingColumnId) ? null : cell.getIsAggregated() ? (
96
94
  cell.renderAggregatedCell()
97
- ) : (enableEditing && column.enableEditing !== false) && currentEditingRow?.id === row.id ? (
95
+ ) : enableEditing &&
96
+ column.enableEditing !== false &&
97
+ currentEditingRow?.id === row.id ? (
98
98
  <MRT_EditCellTextField cell={cell} tableInstance={tableInstance} />
99
99
  ) : (enableClickToCopy || column.enableClickToCopy) &&
100
100
  column.enableClickToCopy !== false ? (
@@ -106,7 +106,7 @@ export const MRT_TableBodyCell: FC<Props> = ({ cell, tableInstance }) => {
106
106
  </>
107
107
  ) : (
108
108
  <>
109
- {cell.renderCell()}
109
+ {cell.column?.Cell?.({ cell, tableInstance }) ?? cell.renderCell()}
110
110
  {row.getIsGrouped() && <> ({row.subRows?.length})</>}
111
111
  </>
112
112
  )}