@smallwebco/tinypivot-react 1.0.12 → 1.0.13
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/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -146,7 +146,6 @@ function useExcelGrid(options) {
|
|
|
146
146
|
const column = table.getColumn(columnId);
|
|
147
147
|
if (column) {
|
|
148
148
|
column.setFilterValue(values.length === 0 ? void 0 : values);
|
|
149
|
-
setColumnFilters(table.getState().columnFilters);
|
|
150
149
|
}
|
|
151
150
|
},
|
|
152
151
|
[table]
|
|
@@ -1904,6 +1903,9 @@ function DataGrid({
|
|
|
1904
1903
|
const end = start + pageSize;
|
|
1905
1904
|
return searchFilteredData.slice(start, end);
|
|
1906
1905
|
}, [enablePagination, searchFilteredData, currentPage, pageSize]);
|
|
1906
|
+
(0, import_react8.useEffect)(() => {
|
|
1907
|
+
setCurrentPage(1);
|
|
1908
|
+
}, [columnFilters, globalSearchTerm]);
|
|
1907
1909
|
const selectionBounds = (0, import_react8.useMemo)(() => {
|
|
1908
1910
|
if (!selectionStart || !selectionEnd) return null;
|
|
1909
1911
|
return {
|