dohomi / react-hook-form-mui

Material-UI form components ready to use with react-hook-form
https://react-hook-form-material-ui.vercel.app
MIT License
561 stars 111 forks source link

SelectElement default value #288

Closed FDiskas closed 4 months ago

FDiskas commented 4 months ago

closes #287

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hook-form-material-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 2:10pm
FDiskas commented 4 months ago

wondering - default value probably should be available for all field types?

dohomi commented 4 months ago

@FDiskas you set the default value by providing defaultValues to React Hook Form. Have a look at https://github.com/dohomi/react-hook-form-mui/blob/master/apps/storybook/stories/TextFieldElement.stories.tsx#L27