-
Version Number7.43.0 Codesandbox/Expo snackhttps://codesandbox.io/s/magical-hill-z09z2h?file=/src/App.js Steps to reproduce
Expected behaviourValidations should be triggered and displayed on page load. There might be a problem with the implementation. But I didn't find a way to trigger validations after the form has been reset. What browsers are you seeing the problem on?Chrome Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
reset will remove all input reference, so trigger will have to called after the next render, possible within useEffect |
Beta Was this translation helpful? Give feedback.
-
Can you provide an example of such solution? Is there way I could use RHF API to achieve it? Thank you |
Beta Was this translation helpful? Give feedback.
-
I thought about using
However |
Beta Was this translation helpful? Give feedback.
-
perhaps you should use onClick or some sort of event, without coupling |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing this same issue, needing to trigger the re-validation of the form after a user clicks 'reset'. Is there a more concrete solution for this usecase? |
Beta Was this translation helpful? Give feedback.
-
Also running into this. Has anyone figured out a solution yet? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
#10823