ant-design / ant-design/pro-components
🐛[BUG] EditableProTable validateFields 单行不生效,永远校验成功
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🐛 bug 描述
EditableProTable multiple 编辑模式,当我想对其中一行进行校验时,调用 editableFormRef.current.validateFields([rowKey]) 时校验没有效果,永远校验通过。
### 📷 复现步骤
见:
### 🏞 期望结果
正常校验
### 💻 复现代码
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and trace EditableProTable's editableFormRef.current.validateFields([rowKey]) entry point. Verify the multiple-edit mode behavior for a single row, then confirm that invalid fields in that row fail validation while other rows remain unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100