ReactHookForm propagating nested forms despite e.stopPropagation
So I have a RHF inside a RHF, I know this isn't best practice, but this SO thread suggests it's possible: https://github.com/react-hook-form/react-hook-form/issues/1005#issuecomment-626050339
Code looks like:
This is nested inside another RHF.
Despite the console.log("here") printing, the event is still being propagated to the parent form when I don't want it to be.
Another approached I tried was removing the "submit" type from the button, and just having the button itself call the onSubmit, still didn't work :BabyRage:
0 Replies