ant-design / ant-design/pro-components

🐛[BUG]StepsForm无法获取到formRef,这个看之前的版本已经修复,但是在使用时还是为空

Open
#8,108 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述

### 📷 复现步骤

StepsForm.stepForm 使用request后,formRef变成了空,看之前版本已经修复,但是在使用时还是出现了这个问题,怎么处理呢?

### 🏞 期望结果

### 💻 复现代码

```

const formRef=useRef();

return (
{
console.log(formRef);
return Promise.resolve(true);
}}
>









);
```

### © 版本信息

- ProComponents 版本: [e.g. 2.6.43]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. windows]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start with the StepsForm formRef and request handling, using the supplied example with request={requestHandler} and the onFinish callback. Compare the behavior with the prior version referenced in the report; done means reproducing the issue and establishing that formRef is available when the form finishes.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.