ant-design / ant-design/pro-components

🐛[BUG]EditableProTable编辑行数据后新增行出现明显bug(官方文档复现)

Open
#8,664 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

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🐛 bug 描述

EditableProTable编辑行数据后新增行出现重复行

### 📷 复现步骤

官方文档EditableProTable - 可编辑表格组件,《与 FormItem 配合》代码演示项,进行编辑行,任意修改一个数据保存,新增一行直接取消,导致出现重复行,且rowKey相同,点击删除,两行同时删除
[复现视频.zip](https://github.com/user-attachments/files/16703181/default.zip)

### 🏞 期望结果

理应是新增行后取消,将新增的行删除

### 💻 复现代码

提供可复现的代码,仓库,或线上示例

### © 版本信息

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

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start with the official EditableProTable “与 FormItem 配合” demo and reproduce the edit/save, add-row, and cancel sequence described in the issue, using the supplied video if needed. Done means cancelling a newly added row removes it rather than creating a duplicate, and deleting a row does not affect another row with the same rowKey.

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.