ant-design / ant-design/pro-components

🧐[问题 DrawerForm下 ProFormText initialValue 显示上次的数据

Open
#9,165 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

DrawerForm下 ProFormText 属性 initialValue 显示 上次的数据,

如下图:
![image](https://github.com/ant-design/pro-components/assets/32530210/96762443-142f-4135-969a-e385e5d58258)

在V5刚发布时,我这样写是可以的。
现在,我移到最新下载的 pro v5上,这样写不行了。

请老师指点下。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior with DrawerForm and ProFormText using initialValue on the latest Pro v5 release, comparing it with the earlier V5 behavior described in the issue. Trace the form's value and reset lifecycle to determine why data from a previous opening remains visible; done when the intended initial value behavior is reproduced and covered by a regression test.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.