ant-design / ant-design/pro-components
🐛[BUG] DrawerForm在onOpenChange里使用ProFormInstance的setFieldsValue无法变更表单值
- 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 描述
DrawerForm在onOpenChange里使用ProFormInstance的setFieldsValue无法变更表单值
我记得之前是可以的,现在是第一次无法变更,第二次打开可以看到变更
### 📷 复现步骤
https://codesandbox.io/p/devbox/why9d3
### 🏞 期望结果
### 💻 复现代码
https://codesandbox.io/p/devbox/why9d3
### © 版本信息
- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and inspect the DrawerForm onOpenChange flow involving ProFormInstance.setFieldsValue. Confirm why the value does not change on the first open, then verify that the corrected behavior works on the first and subsequent opens using the reproduction.
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
- 42/100