ant-design table filterSearch demo includes filterMode="tree" example which doesn't work

uqxowvwt  于 3个月前  发布在  其他
关注(0)|答案(3)|浏览(70)

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.

1cosmwyk

1cosmwyk1#

It has effect that the text will get bold.

6ioyuze2

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.

tvz2xvvm

tvz2xvvm3#

I was also misled today by watching the demo.
Please update the demo or fix the functionality.

相关问题