Skip to content
Discussion options

You must be logged in to vote

You need to pass the field's onBlur callback to your input's callback prop in order for RHF to register the onBlur event + the ref callback. RHF doesn't do any magic behind the scenes to track the events, it's all user managed.

<Controller
  render={({ field }) => (
    <input onBlur={field.onBlur} ref={field.ref} />
  )}
/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@julio3266
Comment options

Answer selected by julio3266
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants