React hook form input is not listening to the DOM Event "change" #12175
Unanswered
binarykitchen
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While using the latest react-hook-form, I've got an external library modifying one of these inputs directly.
The DOM element's value is being set like that:
You see, I am dispatching the above INPUT change event via DOM and expect the react-hook-form to detect that change. But it doesn't. This is the code:
It never reacts. Then when I change the event to "input" and add:
... to manually trigger the change, react-hook-form still does not recognise nor accept the change.
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions