final-form / final-form-focus

🏁 Final Form "decorator" that will attempt to apply focus to the first field with an error upon an attempted form submission
MIT License
83 stars 15 forks source link

Focusing on React Select #18

Open BMCwebdev opened 4 years ago

BMCwebdev commented 4 years ago

Are you submitting a bug report or a feature request?

Request

What is the current behavior?

Focus does not appear to work out of the box with React Select.

What is the expected behavior?

Seeing as React Select is so popular and people tend to use it with React Final Form so much, could we get this to work out of the box?

Alternatively if there is a simple or well known solution, would anyone mind sharing it here?

Sandbox Link

No link. Using the Third Party link in the examples can show the issue.

What's your environment?

Mac OS 10.15. FireFox or Chrome. Everything latest at the time of this post, but as this is a feature request, I don’t think this pertains?

Other information

Vishwas-93 commented 4 years ago

Hi Team,

Good job. Makes it so much easier for the user if the focus is on the error. I have the same problem with Select. Also on wrapped text fields, it doesn't work even if the ref is passed down.

Any help is greatly appreciated.

Thanks Vishwas