Closed Madhavkabra closed 9 months ago
This is also happening for me on mobile on the reshaped homepage. So probably not a specific issue to us, instead of a general reshaped bug.
Fixed it in 2.4.2, can you check if it works fine now?
Hey @blvdmitry , The jumping bug is gone in the 2.4.2. Thanks :D
Is it possible to autofocus on the first error field once the error appears?
Since we don't have information about which libraries you integrate it with, we can't control it automatically. But you can get access to the input elements through inputAttributes={{ ref }}
and use the refs to focus the correct input
When we are using Formik with reshaped text fields, and get an error, the component rerenders and focus goes to the first available element in parent container (in our case, a button). Instead it should change focus and to component that has errors.
Modal in which the form component is used -
Form Component that has textfields