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/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/material-react-table.esm.js +3 -3
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/head/MRT_TableHeadCell.tsx +1 -1
- package/src/hooks/useMRT_DisplayColumns.tsx +1 -1
- package/src/inputs/MRT_EditCellTextField.tsx +1 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
107
|
+
['custom', 'modal'].includes(
|
|
108
108
|
(isCreating ? createDisplayMode : editDisplayMode) as string,
|
|
109
109
|
)
|
|
110
110
|
? columnDef.header
|