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
Because a button's default type is submit and a form will trigger a submit on enter, giving a button inside of <Submittable> an onSubmit callback that is the same as a the required onEnter callback will cause double submit.
This can be prevented by invoking event.preventDefault() inside of the callback, but we might want to look at preventing inside of react-submittable as this seems unexpected.
The text was updated successfully, but these errors were encountered:
Because a button's default type is submit and a form will trigger a submit on enter, giving a button inside of
<Submittable>
anonSubmit
callback that is the same as a the requiredonEnter
callback will cause double submit.This can be prevented by invoking
event.preventDefault()
inside of the callback, but we might want to look at preventing inside ofreact-submittable
as this seems unexpected.The text was updated successfully, but these errors were encountered: