material-react-table 0.26.2 → 0.26.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/MaterialReactTable.d.ts +1 -0
- package/dist/material-react-table.cjs.development.js +3 -1
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +3 -1
- package/dist/material-react-table.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/MaterialReactTable.tsx +1 -0
- package/src/table/MRT_TableRoot.tsx +2 -1
|
@@ -3652,7 +3652,6 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
|
|
|
3652
3652
|
getSubRows: function getSubRows(row) {
|
|
3653
3653
|
return row == null ? void 0 : row.subRows;
|
|
3654
3654
|
},
|
|
3655
|
-
//@ts-ignore
|
|
3656
3655
|
globalFilterFn: (_MRT_FilterFns$curren = MRT_FilterFns[currentGlobalFilterFn]) != null ? _MRT_FilterFns$curren : MRT_FilterFns.fuzzy,
|
|
3657
3656
|
initialState: initialState,
|
|
3658
3657
|
state: _extends({
|
|
@@ -3688,6 +3687,9 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
|
|
|
3688
3687
|
setShowGlobalFilter: (_props$onShowGlobalFi = props.onShowGlobalFilterChange) != null ? _props$onShowGlobalFi : setShowGlobalFilter
|
|
3689
3688
|
});
|
|
3690
3689
|
|
|
3690
|
+
useEffect(function () {
|
|
3691
|
+
return props == null ? void 0 : props.onTableInstanceChange == null ? void 0 : props.onTableInstanceChange(table);
|
|
3692
|
+
}, [table]);
|
|
3691
3693
|
return React.createElement(React.Fragment, null, React.createElement(Dialog, {
|
|
3692
3694
|
PaperComponent: Box,
|
|
3693
3695
|
TransitionComponent: Grow,
|