table icon indicating copy to clipboard operation
table copied to clipboard

useGlobalFilter custom filtering function doesn't work

Open dmitriigaidarji opened this issue 6 years ago • 4 comments

Using v7?

Thanks for using the beta version of React Table v7! We're very excited about it.

Describe the bug Can't set the custom filter function for the global sort

To Reproduce Steps to reproduce the behavior:

In filter codesandbox example remove fuzzy filtering

Expected behavior filterTypes ... text to be called on globalFilter value change

Codesandbox! https://codesandbox.io/s/objective-https-0m4cr

dmitriigaidarji avatar Jan 13 '20 08:01 dmitriigaidarji

Neither column filtering seems to call the filterTypes func

dmitriigaidarji avatar Jan 13 '20 08:01 dmitriigaidarji

In that same line of question, is it possible to disable global filter for specific columns?

gendronb avatar Jan 23 '20 20:01 gendronb

I am also interested in how to implement a custom global filter.

I am trying to implement a global search, rather than a global filter, one that doesn't remove rows.

stevenhuyn avatar Jan 28 '20 21:01 stevenhuyn

This is fixed in master and slated for release. Thanks for your help everyone!

@stevenhuyn please ask your question on our spectrum.chat/react-table forum. Thanks!

tannerlinsley avatar Feb 14 '20 20:02 tannerlinsley