ant-design / ant-design/pro-components
🐛[BUG]EditableProTable单行编辑数据清空引起BUG
- 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单行编辑下,对一行进行编辑再清空表格数据后,点击新增会提示只能新增一行的错误
### 🏞 期望结果
点击新增按钮不提示新增一行 错误
### 💻 复现代码
https://codesandbox.io/p/sandbox/naughty-galois-y3dcp5
### © 版本信息
"@ant-design/pro-components": "2.7.16",
"react": "18.3.1",
"react-dom": "18.3.1",
"antd": "5.26.7"
Contributor guide
Research direction
Start with the CodeSandbox reproduction linked in the issue and trace EditableProTable's single-row editing and add-row behavior. Reproduce the sequence using @ant-design/pro-components 2.7.16 with React 18.3.1 and antd 5.26.7; done means clearing the edited data and then clicking Add no longer reports that only one row may be added.
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