-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ant-transfer checkall button should only control searhed items not all item list (search mode) #5993
Comments
I don't think that we can find the right behavior. You can control the behavior with |
用中文:)) |
按我的理解,全选和反选,只要做到 WYSIWYG 就可以了,至于那些没展示出来的数据,是否该被选中或者反选,由业务代码决定。 |
Table 也是如此。 |
Make sure selection only affect filtered items. |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Version
2.9.3
Environment
ant 2.9.3
Reproduction link
https://ant.design/components/transfer-cn/#components-transfer-demo-advanced
Steps to reproduce
chose 1 item
input some letter (do not search the chosed item)
click checkall button
click checkall button
What is expected?
the item chosen before should be chosen
What is actually happening?
no item is chosen
const holder = checkAll ? [] : filteredDataSource.map(item => item.key);
I think [] should include the items not showed in search mode
The text was updated successfully, but these errors were encountered: