Skip to content

Releases: dohomi/react-hook-form-mui

5.3.2

09 Aug 00:31
Compare
Choose a tag to compare

Add missing AutocompleteProps

closes #85

Patches

  • Add Autocomplete renderOption props: 8ea127d

5.3.1

08 Aug 07:57
Compare
Choose a tag to compare

Patches

  • Forward inputProps to Autocomplete: 6e4e10a

5.3.0

03 Aug 11:23
Compare
Choose a tag to compare

Minor Changes

  • Fix storybook and introduce new variable for MultiSelect: 1c9ea5c

5.2.0

03 Aug 01:16
Compare
Choose a tag to compare

Fix AutocompleteElement

This release fixes #82
https://react-hook-form-material-ui.vercel.app/?path=/story/autocomplete--custom-input

Updated package.json fixes #81

  • Bump terser from 4.8.0 to 4.8.1: 0ed8dce
  • Merge pull request #77 from dohomi/dependabot/npm_and_yarn/terser-4.8.1: b21d6c2
  • Forward InputProps for AutocompleteElement: d752daf
  • Add peerDependencyMeta and add some info into the readme: c0dab7c

Add new property "matchId" to AutocompleteElement

12 Jul 01:22
Compare
Choose a tag to compare

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

11 Jul 13:00
Compare
Choose a tag to compare

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

05 Jul 04:01
Compare
Choose a tag to compare

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

04 Jul 07:57
Compare
Choose a tag to compare

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

30 Jun 04:21
Compare
Choose a tag to compare

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

28 Jun 04:14
Compare
Choose a tag to compare

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