The onBlur and onChange functions comming from register function are the exact same #12196
Unanswered
omardevelopsGit
asked this question in
Q&A
Replies: 1 comment
-
Based on the code, this looks intentional. Is it causing you an actual problem? Here's the relevant code: react-hook-form/src/logic/createFormControl.ts Line 1066 in 81f472c react-hook-form/src/logic/createFormControl.ts Lines 693 to 826 in 81f472c Notably, const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT; The same function is called for both |
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.
-
When logging register(...args) to the console the onBlur and onChange are the exact same.

Codesandbox: https://codesandbox.io/p/sandbox/admiring-sky-sqhrp3?file=%2Fsrc%2FInput.jsx%3A72%2C1
Beta Was this translation helpful? Give feedback.
All reactions