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.
Because a button's default type is submit and a form will trigger a submit on enter, giving a button inside of
<Submittable>anonSubmitcallback that is the same as a the requiredonEntercallback 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-submittableas this seems unexpected.