You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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