Reputation: 1635
I am using react-hook-form with material-ui. I am wrapping a form and input component with my custom component. Validation on this form works only once. For next time onwards, this form does not respond, neither get submitted not validated. Can someone please help me understand what's going wrong here ?
https://codesandbox.io/s/react-hook-form-material-ui-ugiz4
Upvotes: 0
Views: 1161
Reputation: 1176
I think react hook form input which you are using is changed to controller now. You could check in the update section of this link . Here is react hook controller link.
I changed the react hook input form to controller and observed that submit is trigger every time https://codesandbox.io/s/react-hook-form-material-ui-eereh
Upvotes: 1