ant-design / ant-design/pro-components

ProTable中无限滚动加载配合rowSelection勾选时的问题🐛[BUG]

Open
#8,221 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

前提:
1、ProTable组件中使用无限滚动加载,首先显示20条,滚动一次加载20条;
2、配合rowSelection,实现单行数据多选;

问题:
1、当此时表格内数据索引从21开始时;
2、任意勾选某行数据时,表格内数据会自动跳转至第一条数据;

### © 版本信息
有该BUG的版本:2.6.49
无该BUG的版本:2.3.57

- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

Contributor guide

Open the contributing guide

Research direction

Start by reproducing ProTable with infinite scrolling, 20-row batches, and rowSelection, using the versions listed in the issue. Compare behavior between 2.6.49 and 2.3.57; done means selecting a row after the second batch no longer jumps the table back to the first row.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.