ant-design / ant-design/pro-components
🐛[BUG]EditableProTable - 开启多行编辑,并将多行的编辑状态打开,点击其中多个的取消,可能导致所在行数据消失
- 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`,多列编辑时,点击取消会导致所在行数据消失。
### 📷 复现步骤
1. 使用`EditableProTable`
2. 启用多列编辑
3. 开启多列的编辑状态
4. 点击其中的多个取消
5. 发现数据消失
### 🏞 期望结果
数据不消失,只是退出编辑状态
### 💻 复现代码
https://codesandbox.io/p/sandbox/zen-grass-3v9xsx
### © 版本信息
- "@ant-design/icons": "5.4.0",
- "@ant-design/pro-components": "2.7.16",
- "antd": "5.20.0",
- 浏览器环境,chrome 144
- 开发环境,macOS 26
### 🚑 其他信息
https://github.com/user-attachments/assets/a4991271-7bae-49cd-b93b-be6c066eaaaa
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and inspect the EditableProTable entry point that handles cancellation for multiple edited rows. Reproduce the issue with several rows in edit mode, then trace why cancelling multiple rows removes their data. Done means cancelling exits edit mode while preserving every row, with a regression test covering the reported sequence.
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
- 48/100