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

form.getFieldInstance() like v3 #23659

Closed
1 task done
Airkro opened this issue Apr 27, 2020 · 7 comments · Fixed by #24711
Closed
1 task done

form.getFieldInstance() like v3 #23659

Airkro opened this issue Apr 27, 2020 · 7 comments · Fixed by #24711

Comments

@Airkro
Copy link
Contributor

Airkro commented Apr 27, 2020

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

What problem does this feature solve?

form.getFieldInstance(...).focus()

What does the proposed API look like?

const [form] = Form.useForm();

form.getFieldInstance(['abc','efg']).focus()
@darylltee
Copy link

darylltee commented May 21, 2020

Any update on this?

@yakkantiraja
Copy link

@yoyo837 any ETA for this ? Our migration to V4 is blocked due to this bug.

@chrisque5
Copy link

We too have a dependency on this

@bplemon
Copy link

bplemon commented Jun 3, 2020

Any updates on a fix for this? focus is fundamental in forms so this is a major blocker for my migration to v4!

@zombieJ
Copy link
Member

zombieJ commented Jun 3, 2020

Since function component do not support ref before component author wrapper with forwardRef. Form.Item will add referable prop to let form know if this field component should be add ref.

@yakkantiraja
Copy link

When this fix will be available to use?

@yoyo837
Copy link
Contributor

yoyo837 commented Jun 18, 2020

When this fix will be available to use?

v4.4.0 in future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants