Replies: 1 comment 4 replies
-
It's tough to parse all this code in a text form. Please, consider creating a reproducible codesandbox instead |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
react-hook-form version: ^7.39.5
@mui/material version : ^5.11.14,
Call SelectColumn Component
codesandbox : https://codesandbox.io/s/long-glade-pxvrs5?file=/src/Select.tsx:297-313
Call Select Component
this is Select Component
If you click reset, it is reflected in the renderValue, but the selected item remains.
If reset, the value of the file.value becomes a rerender, but the value of the rerender value does not become rerender.
So, instead of using the value in the function of renderValue, we take the field.value used above and use it.
In conclusion, if you reset the react-hook-form, I hope that nothing is selected from the selection.
Beta Was this translation helpful? Give feedback.
All reactions