Releases: neolution-ch/react-hook-form-components
Releases · neolution-ch/react-hook-form-components
Release 4.2.0
Fixed
ColorPickercontrolled/uncontrolled state warning by ensuring value prop is always defined.ColorPickerclear value when field value is already set.
Release 4.1.0
Added
- support for max length in
TelephoneNumberInput.
Release 4.0.0
Changed
- updated most dependencies to newest possible version
- 💥
reactstrapis replaced byneolution-ch/reactstrapwhich includes support for React 19
Release 3.17.0
Fixed
- padding on
textFieldBootstrapStylein order to override MUI padding onStaticTypeahead,AsyncTypeahead,ColorPickerInputandTelephoneNumberInput.
Release 3.16.0
Added
- support to allow menu size to fit the longest option into
StaticTypeaheadandAsyncTypeahead, viafitMenuContent.
Release 3.15.1
Fix
*visibility on a required field label, whether the label is empty.DatePickerInputselector whenonClickOutsidefunction is triggered.
Release 3.15.0
Added
- support to specify
innerRefintoStaticTypeaheadInputandAsyncTypeaheadInput.
Release 3.14.0
Added
- support into
requiredFieldsproperty ofFormcomponent, for nested objects and arrays. formhelper functions.countryMenuWidthproperty toTelephoneNumberInputin order to customize the country menu width.
Fixed
-
TelephoneNumberInputcountries order, in order to be alphabetically sorted. -
Required field label on
FormGroupLayoutLabel,ColorPicker,TelephoneNumberInput,TypeaheadTextField(henceStaticTypeaheadInputandAsyncTypeaheadInput) in order to display * also on nested and array fields.requiredFieldscan still accept aFieldPath<T>[]- In order to be complaint with
FieldPathreact-hook-form type (object.${number}.property) array properties provide a wildcard:
requiredFields = [ `object`, `object.nestedObjects`, `objects.*.property`, `object.nestedObject.property`, `object.nestedObjects.*.property`, ];
is going to consider as required:
name="object" name="object.nestedObjects.0", "object.nestedObjects.1", etc. name="objects.0.property", name="objects.1.property", etc. name="object.nestedObject.property" name="object.nestedObjects.0.property", name="object.nestedObjects.1.property", etc.
Release 3.13.1
Fixed
- Open menu on search country input clear for
TelephoneNumberInput
Release 3.13.0
Fixed
- country labels in search country input for
TelephoneNumberInputincludes also national prefix. - Clicking on clear icon in search country input for
TelephoneNumberInputwill automatically open the select menu.
Added
pinnedCountriesproperty inTelephoneNumberInputwhich allows to pin some countries in the top of the list.