ant-design / ant-design/pro-components

EditableProTable配合分页使用添加一行时出现异常🐛[BUG]

Open
#6,992 6 comments 0 reactions 0 assignees View on GitHub
⭕️ bug AI Reply table
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述

使用EditableProTable配合request异步请求接口,配合分页,往中间的页数添加一行时,页面显示为空
点击前
![image](https://user-images.githubusercontent.com/20655248/234830052-d983992c-4176-4910-b238-af4b65b4710a.png)
点击后
![image](https://user-images.githubusercontent.com/20655248/234830203-929d2d17-b1ac-43c9-b54a-bdf6d5a714a4.png)

发现添加的这行跑到第二页
![image](https://user-images.githubusercontent.com/20655248/234830471-96f09daa-4b48-4c58-9741-40460e9c44ef.png)

### 📷 复现步骤

复现地址https://codesandbox.io/s/yu-formitem-pei-he-forked-99xpqp?file=/App.tsx

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction in the linked CodeSandbox, especially App.tsx, and verify the behavior using EditableProTable with an asynchronous request and pagination. Compare adding a row on a middle page before and after the action. Done means the page remains populated and the added row stays on the intended page instead of moving to page two.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.