issue: Fails to revalidate form on input change via <Controller /> component #11706
Replies: 7 comments
-
Can anyone tell me why this landed in discussion? Isn't it supposed to be in issue? |
Beta Was this translation helpful? Give feedback.
-
Hey, your example is working for me. Have you changed anything? |
Beta Was this translation helpful? Give feedback.
-
@danielnakamashi No i didn't. specified issue is still there. inshort value change only trigger revalidation for that particular field, not every relevent field. we will have to manually trigger those validation. |
Beta Was this translation helpful? Give feedback.
-
@danielnakamashi follow the steps to reproduce correctly please. |
Beta Was this translation helpful? Give feedback.
-
Yes, you're right. It's not working. I must have done something wrong when reproducing it. |
Beta Was this translation helpful? Give feedback.
-
@danielnakamashi i think this behaviour is intended. otherwise for big form it would trigger whole form validation, which would be undesirable. i think i used |
Beta Was this translation helpful? Give feedback.
-
or we can have a new api, like |
Beta Was this translation helpful? Give feedback.
-
Version Number
^7.31.3
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/react-hook-form-revalidate-issue-w4n8gy?file=%2Fsrc%2FApp.tsx%3A79%2C23
Steps to reproduce
Other
from select menuExpected behaviour
reValidateMode
isonChange
.What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions