Releases: dohomi/react-hook-form-mui
5.3.2
5.3.1
5.3.0
5.2.0
Fix AutocompleteElement
This release fixes #82
https://react-hook-form-material-ui.vercel.app/?path=/story/autocomplete--custom-input
Updated package.json fixes #81
Add new property "matchId" to AutocompleteElement
Automatic use of the id property for AutocompleteElement
This option lets you use the id field of the AutocompleteElement options. This is useful if you want to only safe the id field in your database and don't need the full object of the value to be exposed (example).
<AutocompleteElement
matchId
options={[{
id: 1,
label: 'One'
},{
id: 2,
label: 'Two'
}]}
/>
Minor Changes
- Add functionality to automatically use ID field for AutocompleteElement: b7be21d
Change AutocompleElement behaviour
Changes to AutocompleteElement
For aligning better with structured data the AutocompleteElement is taking the value as is. This simplifies the built-in API and returns the object or the string - depends on the defined options.
This improves #65
Major Changes
- Change behaviour of Autocomplete to return objects for easier integration: 7463534
Fix typing on SelectElement and adjust MultiSelectElement
Fix typing regression and adjust MultiSelectElement
The latest release missed the typings improvement on MultiSelectElement and there was a typing mismatch.
Breaking change:
renamed MultiSelectElement menuItems => options.
Fixes #66
- Fix typings on select and adjust MultiSelect to the new typings changes: af5884d
Update react-hook-form which has breaking changes
Typings are more strict and improved. Please have a look at form variants:
Here is a new example on strict typings of the form names:
https://react-hook-form-material-ui.vercel.app/?path=/story/formcontainer--strict-typing-form
Fix AutocompleteElement on clear
Patches
- Allow clearing the autocomplete element without throwing an error: 6b1b56f
- Merge pull request #64 from johnmoxley/master: c65921d
Thansk to @johnmoxley for his contribution
Add AutocompleteElement component
New Component: AutocompleteElement
A new component AutocompleteElement
is available.
<AutocompleteElement options=[{id: 1, label: 'One'}, {id: 2, label: 'Two'}] name="autocomplete" />
Visit the demo to see the use: https://react-hook-form-material-ui.vercel.app/?path=/story/autocomplete--basic
Changelog
Thanks for all external contributors!
- Add logo with badges: 5f70604
- Add link to the file: 4ac726b
- Add eslint + prettier support: 9795308
- Add bug template: fcf45e3
- Add feature template: 1dd3787
- Merge pull request #63 from ChromeGG/add-issues-templates: 9f7bf29
- Merge pull request #61 from ChromeGG/improve-readme: 8372d48
- Merge pull request #62 from ChromeGG/add-eslint-support: 60afc16
- Add autocomplete component: caa3319