custom onChange in useController #9144
Answered
by
bluebill1049
deepgolani4
asked this question in
General
Replies: 1 comment 3 replies
-
<input onChange={(e) => {
field.onChange(e)
// do your own change event
}} value={field.value} /> |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
leapful
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.
-
Is there any way to overwrite onChange so I don't have to write custom onChange in the input field?
i can just pass the custom onChange from spreading the useController.
Beta Was this translation helpful? Give feedback.
All reactions