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
Although accessibility is good in both cases (both trigger submit on Enter and on click), only <Form onSubmit handles validation. Fix it upstream or add types+lint to enforce correct usage.
Before:
<Form><Buttontype="submit"onClick={onSubmit}>
After:
<FormonSubmit={onSubmit}><Buttontype="submit">
The text was updated successfully, but these errors were encountered:
Related to #1037 (review)
Although accessibility is good in both cases (both trigger submit on Enter and on click), only
<Form onSubmit
handles validation. Fix it upstream or add types+lint to enforce correct usage.Before:
After:
The text was updated successfully, but these errors were encountered: