@tanstack/table-core 8.5.0 → 8.5.1
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/build/cjs/features/Filters.js +4 -1
- package/build/cjs/features/Filters.js.map +1 -1
- package/build/esm/index.js +4 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +311 -311
- package/build/umd/index.development.js +4 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/features/Filters.ts +4 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/table-core",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "8.5.
|
|
4
|
+
"version": "8.5.1",
|
|
5
5
|
"description": "Headless UI for building powerful tables & datagrids for TS/JS.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/tanstack/table#readme",
|
package/src/features/Filters.ts
CHANGED
|
@@ -402,10 +402,11 @@ export const Filters: TableFeature = {
|
|
|
402
402
|
},
|
|
403
403
|
|
|
404
404
|
getPreFilteredRowModel: () => table.getCoreRowModel(),
|
|
405
|
-
_getFilteredRowModel:
|
|
406
|
-
table.options.getFilteredRowModel &&
|
|
407
|
-
table.options.getFilteredRowModel(table),
|
|
408
405
|
getFilteredRowModel: () => {
|
|
406
|
+
if (!table._getFilteredRowModel && table.options.getFilteredRowModel) {
|
|
407
|
+
table._getFilteredRowModel = table.options.getFilteredRowModel(table)
|
|
408
|
+
}
|
|
409
|
+
|
|
409
410
|
if (table.options.manualFiltering || !table._getFilteredRowModel) {
|
|
410
411
|
return table.getPreFilteredRowModel()
|
|
411
412
|
}
|