After updating to React 18, forms using RHF don't have the proper data in the submit handler #10664
Unanswered
billsaysthis
asked this question in
Q&A
Replies: 1 comment
-
Please provide a codesandbox url to re-produce the issue. |
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.
-
One of the fields is being passed as undefined despite a value being set in the form itself. Generally (always possibly) the field having the problem is a Select. This has been working correctly for 2+ years with React 16.x but after updating to React 18 today we're seeing this wherever RHF is used with a select.
No JS error or warning in the console. Using version 7.45.1 of RHF and React 18.2.0.
Beta Was this translation helpful? Give feedback.
All reactions