Search code examples
reactjsreact-hooksantd

React Antd Table: FilteredValue


I tried to create a searchbar and a filterType on an Antd Table but the 2 Filters don't want to work together.

Here is my sandbox

My problem is when I uncomment filteredValue, my setFilteredType(value) does not work anymore

Thanks in advance


Solution

  • this is a solution codesandbox, but i think the search action can filter data from the data source directly, don't need to filter by column's onFilterChange action.