react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

Method form.focus doesn't work

Open ahtohbi4 opened this issue 6 years ago • 2 comments

Are you submitting a bug report or a feature request?

Looks like a bug.

What is the current behavior?

I take the object form from FormRenderProps and try to focus on a field by method form.focus('field_name'), but it doesn't work.

What is the expected behavior?

It is possible to focus on the field by method form.focus() and field name.

Sandbox Link

https://codesandbox.io/s/strange-keller-x6c08?file=/src/App.js

What's your environment?

Other information

ahtohbi4 avatar Oct 27 '20 18:10 ahtohbi4

I'm facing with the same issue. My packages versions are absolutely the same with OP's versions.

vdpdev avatar Jan 20 '21 12:01 vdpdev

Same here. @ahtohbi4 or @vdpdev did you find the issue or a workaround?

vykintas-z avatar Jan 29 '21 00:01 vykintas-z