Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Version Number
7.47.0
Codesandbox/Expo snack
https://codesandbox.io/s/react-hook-form-v7-controller-ts-forked-lnds5s?file=/src/MuiAutoComplete/MuiAutoComplete.tsx
Steps to reproduce
Controller
ofCountrySelect
componentfindIndex
returns -1 with reference comparison of the selected item and items in the options (countries) array.Expected behaviour
"Stability" should be preserved, that is what is retrieved from
field.value
should be the same reference passed to thefield.onChange
method.What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Edge
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions