Resetting errors #366
-
Hi 👋🏼 , React hook form has reset and clearErrors which can be invoked when the modal is closed. Does conform has such functionality ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can trigger a native form |
Beta Was this translation helpful? Give feedback.
You can trigger a native form
reset
event, which conform listens to, usingformElement.reset()
. If you are not passing a custom ref object touseForm()
, you should have a default form ref object withform.ref
already.