79786346

Date: 2025-10-09 11:39:05
Score: 1
Natty:
Report link

You can add stopPropagation and preventDefault like this:

return (
<form onSubmit={event => {
    event.stopPropagation()
    // add preventDefault if necessary
    handleSubmit(onSubmit, onError)(event)
}}>
{...}
</form>)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gabriel Stafoca