Reproduction link
https://ant.design/components/table#components-table-demo-filter-search
Steps to reproduce
Select filter on 'Name' column, attempt to search with 'Joe', 'Category 1' or 'Category 2'.
What is expected?
The filter items are filtered by the search value.
What is actually happening?
Nothing is filtering/changing.
| Environment | Info |
| ------------ | ------------ |
| antd | 5.14.2 |
| React | 18 |
| System | Windows 11 |
| Browser | Chrome |
filterSearch=true does not seem to work with filterMode='tree'.
The demo should have filterMode='tree' removed until support for filterMode='tree' + filterSearch=true is added.
3条答案
按热度按时间1cosmwyk1#
It has effect that the text will get bold.
6ioyuze22#
@MadCcc this feature is inconsistent across different browsers.
The text will get bold on Chrome but on Firefox this doesn't work at all. I'm also not sure why the filters are different here either.
Overall I feel like this is not good UX, just making text bold is not enough for users.
tvz2xvvm3#
I was also misled today by watching the demo.
Please update the demo or fix the functionality.