You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/material-react-table-docs/pages/changelog.mdx
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,20 @@ import Head from 'next/head';
7
7
8
8
## MRT V3 Changelog
9
9
10
+
### Version 3.1.0 - 2024-12-22
11
+
12
+
- Un-deprecated several `mui*Props` that were initially marked as deprecated in V3.0.0. They will be sticking around longer than expected until TanStack Table itself handles merging `defaultColumn` options better
13
+
- Updated Types for React 19 (Fixed some JSX namespace issues)
14
+
- MRT_FilterTextField improvements:
15
+
- Refactored to better use the slotProps API internally, but still accept custom props from `muiFilterTextFieldProps` and the like
16
+
- Set the visibility of the "Clear" filter text field button to be hidden unless the filter text field has a value
17
+
- Fixed overlapping input label in select filters
18
+
- Fixed Range Slider filter keyboard navigation to not move the focus to the next cell when using the arrow keys on the slider
19
+
- Fixed "Clear Sorting" Menu Item not being disabled if there was no sorting applied to that column
20
+
- Fixed bug where "Reset Column Size" Menu Item was disabled when a column had a size of 0
21
+
- Fixed issue with Select Edit inputs not blurring correctly
22
+
- Fixed total selected row count when grouping by columns
23
+
10
24
### Version 3.0.3 - 2024-12-13
11
25
12
26
- Fixed filter text field value
@@ -16,7 +30,7 @@ import Head from 'next/head';
16
30
- Fixed rendering of multi-select filter when filter value is an empty array
17
31
- Rearranged execution of `muiTableBodyCellProps?.onKeyDown` internally to allow these events to be overridden or even skipped
18
32
- Fixed MRT_RowActionMenu key prop internally
19
-
- Corrected Sweedish`sv` locale translations
33
+
- Corrected Swedish`sv` locale translations
20
34
- Removed 'new-password' from autocomplete in text fields and just use 'off'
Copy file name to clipboardExpand all lines: apps/material-react-table-docs/pages/docs/getting-started/migrating-to-v3.mdx
+1-42Lines changed: 1 addition & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -59,49 +59,8 @@ You should now be on Material React Table V3! Look for any code or type errors i
59
59
- Keyboard navigation for table cells in now enabled by default. If you had added your own custom keyboard shortcuts, you may want to set `enableKeyboardShortcuts` to `false` or remove your custom shortcuts.
60
60
- Removed deprecated `MRT_Virtualizer` type in favor of separate `MRT_RowVirtualizer` and `MRT_ColumnVirtualizer` types
61
61
- Removed deprecated `text` in favor of the more consistent `label` type in dropdown/autocomplete/select option types.
62
-
- Deprecated several `mui*Props` table options that were column-specific. These table options should either be specified in column defs or in the `defaultColumn` table option.
63
-
-`muiColumnActionsButtonProps`
64
-
-`muiColumnDragHandleProps`
65
-
-`muiCopyButtonProps`
66
-
-`muiEditTextFieldProps`
67
-
-`muiFilterAutocompleteProps`
68
-
-`muiFilterCheckboxProps`
69
-
-`muiFilterDatePickerProps`
70
-
-`muiFilterDateTimePickerProps`
71
-
-`muiFilterSliderProps`
72
-
-`muiFilterTextFieldProps`
73
-
-`muiFilterTimePickerProps`
74
-
-`muiTableBodyCellProps`
75
-
-`muiTableHeadCellProps`
76
-
-`muiTableFooterCellProps`
77
-
-`renderCellActionMenuItems`
78
-
-`renderColumnActionsMenuItems`
79
-
-`renderColumnFilterModeMenuItems`
80
-
81
-
```diff
82
-
const table = useTable({
83
-
columns,
84
-
data,
85
-
// Recommended to specify these table options in the defaultColumn instead
86
-
+ defaultColumn: { // applies to all columns
87
-
+ muiTableBodyCellProps: {
88
-
+ align: 'center',
89
-
+ },
90
-
+ muiFilterAutocompleteProps: {
91
-
+ sx: { my: 2 },
92
-
+ },
93
-
+ },
94
-
// these table options will be removed in MRT V4
95
-
- muiTableBodyCellProps: {
96
-
- align: 'center',
97
-
- },
98
-
- muiFilterAutocompleteProps: {
99
-
- sx: { my: 2 },
100
-
- },
101
-
)};
102
-
```
103
62
104
-
You can be lazy with these changes. These table options are just marked as deprecated, but they will still work until MRT V4.
63
+
> Note: As of MRT V3.1.0, some muiProps that were initially marked as deprecated in V3.0.0 are no longer deprecated until a future version of TanStack Table comes out that handles `defaultColumn` options merging better.
105
64
106
65
> Can I uninstall Emotion Yet? No, Emotion is still required for Material React Table V3, but it won't be for long. MRT V4 will remove the Emotion dependency in favor of [Pigment CSS](https://mui.com/blog/introducing-pigment-css/).
0 commit comments