mig-schema-table 3.0.87 → 3.0.89
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.
|
@@ -551,7 +551,11 @@ function SchemaTable({ Heading = VariableSizeList, checkedIndexes, config, custo
|
|
|
551
551
|
// prevent hash change for undefined vs empty string compare
|
|
552
552
|
(searchQuery || locationHash.searchQuery) &&
|
|
553
553
|
searchQuery !== locationHash.searchQuery) {
|
|
554
|
-
|
|
554
|
+
// use setTimeout() so any button clickhandler is still executed before the hash is changed
|
|
555
|
+
setTimeout(() => {
|
|
556
|
+
window.location.hash = serializeLocationHash(Object.assign(Object.assign({}, locationHash), { searchQuery }));
|
|
557
|
+
// 1 is not enough?!
|
|
558
|
+
}, 400);
|
|
555
559
|
}
|
|
556
560
|
}, [locationHash, searchQuery, useFilterStateHash]);
|
|
557
561
|
const onExportDataClick = React.useCallback((e) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mig-schema-table",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.89",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/"
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@types/file-saver": "^2.0.7",
|
|
12
12
|
"@types/jest": "^27.5.2",
|
|
13
|
-
"@types/node": "^16.18.31",
|
|
14
13
|
"@types/papaparse": "^5.3.14",
|
|
15
14
|
"@types/react": "^18.2.6",
|
|
16
15
|
"@types/react-datepicker": "^4.11.2",
|
|
@@ -53,6 +52,7 @@
|
|
|
53
52
|
]
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
55
|
+
"@types/node": "^20.12.5",
|
|
56
56
|
"@testing-library/jest-dom": "^5.16.5",
|
|
57
57
|
"@testing-library/react": "^13.4.0",
|
|
58
58
|
"@types/date-fns": "^2.6.0",
|