#362 Clarify documentation about "onSubmit"

Save time of other developers by making clear when `onSubmit` is called.