react-hook-form-mui icon indicating copy to clipboard operation
react-hook-form-mui copied to clipboard

`<AutocompleteElement>` storybook's "Pre Select" cases needs to clarify where values come from

Open Skarvion opened this issue 5 months ago • 1 comments

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

Skarvion avatar Sep 02 '24 12:09 Skarvion