issue: OnChange event does not fire for HTML select within a React Hook Form #8672
-
Version Number7.31.2 Codesandbox/Expo snackSteps to reproduce
Expected behaviouronChange event should fire for dropdown value change What browsers are you seeing the problem on?Chrome Relevant log outputNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Temporary closing as "need more info" Please, take your time to provide a minimal reproduction codesandbox |
Beta Was this translation helpful? Give feedback.
-
Please see the example below: Change the onChange event on line 32 to onClick and the alert is triggered, but not for onChange |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
onChange={(e) => alert("clicked")}
{...register("province")} it's getting overwritten: https://react-hook-form.com/api/useform/register |
Beta Was this translation helpful? Give feedback.
-
cool, thank you! |
Beta Was this translation helpful? Give feedback.
it's getting overwritten: https://react-hook-form.com/api/useform/register