-
Hi there, I have to custom trigger onChange returned by register (as I need it to run the deps, cant use
This works except that it does not call the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
can you share a codesandobx? |
Beta Was this translation helpful? Give feedback.
-
You forgot to pass "field" data of "form.register" into input element. Working demo: https://codesandbox.io/s/custom-onchange-not-trigger-setvalueas-forked-nj0z8y?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
@Noitidart :
You forgot to pass "field" data of "form.register" into input element.
Working demo: https://codesandbox.io/s/custom-onchange-not-trigger-setvalueas-forked-nj0z8y?file=/src/App.js