Incorrect getCanGlobalFilter() state
I just wanted to throw this out here, but I'm not willing to create a reproducible sandbox.
When using manual pagination, column.getCanGlobalFilter() returns false whenever the column of the current page has no values for that column.
Due the following: https://github.com/TanStack/table/blob/ac48ff768a44d0c379b5f36d98e5f90e8018e1b7/packages/table-core/src/features/Filters.ts#L190
which is called from: https://github.com/TanStack/table/blob/ac48ff768a44d0c379b5f36d98e5f90e8018e1b7/packages/table-core/src/features/Filters.ts#L251
I guess it could be considered a very specific case, but I guess when having manual pagination that should not be checked since other pages could have values.
GitHub
table/packages/table-core/src/features/Filters.ts at ac48ff768a44d0...
🤖 Headless UI for building powerful tables & datagrids for TS/JS - React-Table, Vue-Table, Solid-Table, Svelte-Table - TanStack/table
0 Replies