Skip to content
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

rowSelection preserveSelectedRowKeys false not work for async pagination data #32861

Open
JackClown opened this issue Nov 15, 2021 · 2 comments
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive

Comments

@JackClown
Copy link

重现链接

https://codesandbox.io/s/tableyi-bu-fen-ye-shu-ju-xuan-zhong-wen-ti-leltq?file=/index.js

antd 版本

4.17.0-alpha.8

重现步骤

  1. select the first record on page 1
  2. go to page 2
  3. back to page 1

期望的结果是什么?

the first record is not selected

实际的结果是什么?

the first record is selected

浏览器

Chrome

浏览器版本

No response

操作系统

MacOS

其他

@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Nov 15, 2021
@Karshilov
Copy link

I may have a try.

@Dunqing
Copy link
Contributor

Dunqing commented Mar 14, 2022

当preserveSelectedRowKeys为false时,切换页面应当清空rowSelection 并触发rowSelection.onChange事件传递空数组

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive
Projects
None yet
Development

No branches or pull requests

4 participants