Closed FDiskas closed 4 months ago
I was unable to preselect the default option by providing defaultValue option to a SelectElement If I do render simple MUI component it works
defaultValue
SelectElement
I should be able to use defaultValue
Example: https://react-f3w5pk.stackblitz.io
https://github.com/dohomi/react-hook-form-mui/blob/master/apps/storybook/stories/TextFieldElement.stories.tsx#L27 you provide defaultValues to React Hook Form once for all fields.
defaultValues
Duplicates
Latest version
Current behavior 😯
I was unable to preselect the default option by providing
defaultValue
option to aSelectElement
If I do render simple MUI component it worksExpected behavior 🤔
I should be able to use
defaultValue
Steps to reproduce 🕹
Example: https://react-f3w5pk.stackblitz.io