ant-design / ant-design/pro-components

🐛[BUG]EditableProTable - 可编辑表格

Open
#9,318 3 comments 2 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 - 可编辑表格
点击编辑时,如果在编辑态的数据超一条,第二条点击取消的数据会被删除,而不是取消编辑态

https://procomponents.ant.design/components/editable-table
官方示例就存在这个问题

### 📷 复现步骤
点击多条数据的编辑,不对数据进行更改,然后依次点击取消,第二条取消的数据会被删除

在官方示例就能复现

### 🏞 期望结果
除第一条编辑态的数据点击取消时不会被删除

### 💻 复现代码

### © 版本信息

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

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start with the EditableProTable example at https://procomponents.ant.design/components/editable-table and reproduce the issue by editing multiple rows, changing nothing, and cancelling them in sequence. Done means cancelling each row leaves its data intact while exiting edit mode; the issue does not name a source file or test to run.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.