-
Hello everyone, This might be a very noob question but I am quite stuck. I cannot make the global filter also search for string[] data, as it seems to completely ignore it. I also cannot understand how the column`s filterFn function is supposed to work, as my expectation was that it would make a given field behave a certain way. I`ve changed the code I share now in multiple ways (on my project), including not making a fuzzy function, and just use a global filter, but what appears to happen is that the column with the string[] values is not called by the global filter function. https://codesandbox.io/p/sandbox/shy-water-xy3cjz I appreciate any insight and I apologize in advance if somehow this is completely missing me and I would gladly have you point me towards the necessary documentation and\or solution. Thank you very much. Update: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To anyone who finds this: https://tanstack.com/table/v8/docs/api/features/filters#can-filter What is missing in the code is adding the following snippet in useReactTable
By doing this, the column will also be caught in the global filter. |
Beta Was this translation helpful? Give feedback.
To anyone who finds this:
https://tanstack.com/table/v8/docs/api/features/filters#can-filter
What is missing in the code is adding the following snippet in useReactTable
By doing this, the column will also be caught in the global filter.