Skip to content

rowSelection.onChange asynchronous data, selectedKeys are lost #4980

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

Closed
1 task
ghost opened this issue Dec 6, 2021 · 4 comments
Closed
1 task

rowSelection.onChange asynchronous data, selectedKeys are lost #4980

ghost opened this issue Dec 6, 2021 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 6, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.0.0-alpha.14

Environment

vue3 antdv- alpha.xxx

Reproduction link

Edit on CodeSandbox

Steps to reproduce

表格异步数据,onchange 参数,只记录当前页

What is expected?

2.7.8没有问题,死数据没有问题

What is actually happening?

3.0.0.alpha.13有问题,其他没测


谢谢

@github-actions github-actions bot changed the title rowSelection.onChange 异步数据,seletedKeys丢失了 rowSelection.onChange asynchronous data, selectedKeys are lost Dec 6, 2021
@ghost
Copy link
Author

ghost commented Dec 6, 2021

如果这个版本刻意这么改的,回复一下,谢谢,我现在用的onSelect实现的。

@tangjinzhou
Copy link
Member

设置 rowSelection.preserveSelectedRowKeys = true

@ghost
Copy link
Author

ghost commented Dec 8, 2021

哦哦,多谢,没看到那个属性。抱歉

@github-actions
Copy link

github-actions bot commented Dec 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant