Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Form ref is none in render #22415

Closed
1 task
davycun opened this issue Mar 19, 2020 · 1 comment
Closed
1 task

The Form ref is none in render #22415

davycun opened this issue Mar 19, 2020 · 1 comment

Comments

@davycun
Copy link

davycun commented Mar 19, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1、click button
2、the Form input display none

What is expected?

first click the input display

What is actually happening?

input no show

Environment Info
antd 4.0.3
React 16.13.0
System mac os
Browser chrome lastest

//能不能在通过props初始化表单的时候就可以采用此form的引用
//否则通过编辑数据的时候,只能把关联字段必填与否通过state来实现,
//当Form字段关联比较多的时候就比较麻烦,需要搞很多state和onChange

@zombieJ
Copy link
Member

zombieJ commented Mar 19, 2020

与表单有关的操作都需要在 Form 的控制范围内。

https://codesandbox.io/s/antd-reproduction-template-l0bq9

@zombieJ zombieJ closed this as completed Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants