Replies: 1 comment 9 replies
-
Thanks for reporting, can you share a codesandbox with youyr problem ? It helps us to investigate |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using RHF, a wonderful library, thank you for your hard work!
Very excited to update to V7, found out calling
reset
method now trigger form'sonReset
event, it did not do that prior v7. Is this behaviour intended?I have this lazy design to using form as detail page as well(disabled form element with styling), so when I hit
cancel
button, I set form element to disabled doubling as a detailed page.I some times I need to something extra when I hit reset button, for example, if the entity is new, hitting the
cancel
button triggeringonReset
event, I want to move away from thenew
route or close a dialog, because an empty entity doesn't have a detail page.Now the RHF
reset
function triggeronReset
event, making the above situation a bit tricky.Is there an option on
reset
method for disabling the trigger ofonReset
event?Beta Was this translation helpful? Give feedback.
All reactions