material-react-table 1.3.7 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.3.
|
2
|
+
"version": "1.3.9",
|
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.",
|
@@ -44,10 +44,10 @@
|
|
44
44
|
"analyze": "size-limit --why",
|
45
45
|
"build": "rm -rf dist locales && rollup -c && size-limit && rm -rf material-react-table-docs/node_modules/material-react-table && mkdir material-react-table-docs/node_modules/material-react-table && cp -r dist material-react-table-docs/node_modules/material-react-table/dist && cp -r locales material-react-table-docs/node_modules/material-react-table/ && cp -r src material-react-table-docs/node_modules/material-react-table/ && cp -r package.json material-react-table-docs/node_modules/material-react-table/",
|
46
46
|
"build-storybook": "build-storybook",
|
47
|
+
"dev": "start-storybook -p 6006",
|
47
48
|
"format": "prettier -w .",
|
48
49
|
"lint": "eslint .",
|
49
50
|
"size": "size-limit",
|
50
|
-
"dev": "start-storybook -p 6006",
|
51
51
|
"start": "start-storybook -p 6006",
|
52
52
|
"storybook": "start-storybook -p 6006"
|
53
53
|
},
|
@@ -99,11 +99,12 @@
|
|
99
99
|
"@emotion/styled": ">=11",
|
100
100
|
"@mui/icons-material": ">=5",
|
101
101
|
"@mui/material": ">=5",
|
102
|
-
"react": ">=17.0"
|
102
|
+
"react": ">=17.0",
|
103
|
+
"react-dom": ">=17.0"
|
103
104
|
},
|
104
105
|
"dependencies": {
|
105
106
|
"@tanstack/match-sorter-utils": "8.5.14",
|
106
|
-
"@tanstack/react-table": "8.5.
|
107
|
+
"@tanstack/react-table": "8.5.27",
|
107
108
|
"react-virtual": "^2.10.4"
|
108
109
|
}
|
109
110
|
}
|
@@ -4,6 +4,7 @@ import React, {
|
|
4
4
|
MouseEvent,
|
5
5
|
useCallback,
|
6
6
|
useEffect,
|
7
|
+
useRef,
|
7
8
|
useState,
|
8
9
|
} from 'react';
|
9
10
|
import Box from '@mui/material/Box';
|
@@ -171,10 +172,13 @@ export const MRT_FilterTextField: FC<Props> = ({
|
|
171
172
|
setAnchorEl(event.currentTarget);
|
172
173
|
};
|
173
174
|
|
175
|
+
const isMounted = useRef(false);
|
176
|
+
|
174
177
|
useEffect(() => {
|
175
|
-
if (column.getFilterValue() === undefined) {
|
178
|
+
if (isMounted.current && column.getFilterValue() === undefined) {
|
176
179
|
handleClear();
|
177
180
|
}
|
181
|
+
isMounted.current = true;
|
178
182
|
}, [column.getFilterValue()]);
|
179
183
|
|
180
184
|
if (columnDef.Filter) {
|