Replies: 1 comment
-
I needed this functionality, too, so I tried looking for it. You might have found it already, but for those who are looking and ended up here. Here's where I found it: const { control } = useFormContext()
control._options.mode // "all" | "onBlur" | "onChange" | "onSubmit" | "onTouched" |
Beta Was this translation helpful? Give feedback.
0 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 a custom Select component that requires triggering validation manually (it does have a ref, but the ref is just attached to a hidden input to track the value). I would like to add event handlers like this to the wrapper for my component, but how can I get the
mode
variable?I was hoping I could find the current mode on the object returned from
useFormContext()
, but it doesn't seem to be there.Beta Was this translation helpful? Give feedback.
All reactions