You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you avoid <form> tag and you use just <button onClick={form.submit} disabled={submitting}>Submit</button>, validation is provided but focus is not there.
Problem with <form onSubmit={handleSubmit} /> is that, that even Enter on textbox will trigger it or even worse every other button without specifying type="".
It would be also helpful to have it without <form> tag
The text was updated successfully, but these errors were encountered:
Check this demo: https://codesandbox.io/s/react-final-form-focus-on-first-error-ib23b
If you avoid
<form>
tag and you use just<button onClick={form.submit} disabled={submitting}>Submit</button>
, validation is provided but focus is not there.Problem with
<form onSubmit={handleSubmit} />
is that, that even Enter on textbox will trigger it or even worse every other button without specifying type="".It would be also helpful to have it without
<form>
tagThe text was updated successfully, but these errors were encountered: