react-hook-form-mui
react-hook-form-mui copied to clipboard
`<AutocompleteElement>` storybook's "Pre Select" cases needs to clarify where values come from
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the latest version
Summary 💡
Took me a long time to understand that the default values of a field are provided at the form container level. Reading through the storybook documentation, it doesn't make it clear it's populated at the form level.
The stories should contain <FormContainer>
too or at the very least a comment explaining that the default values are added there. Probably can add a paragraph element using this https://storybook.js.org/docs/writing-stories/decorators#context-for-mocking
If you'd like to, I can try to raise a PR to go for the second option.
Examples 🌈
No response