Releases: neolution-ch/react-hook-form-components
Releases · neolution-ch/react-hook-form-components
Release 3.7.0
Added
- property
autoComplete
toForm
component
Release 3.6.1
Fixed
- wrong spread provided by MUI on
renderHighlightedOptionFunction
Release 3.6.0
Added
- New typeahead helper function
getAutosuggestHighlightParts
.
Release 3.5.0
Changed
-
date-fns
is now installed as dependency
Fixed
- removed not needed dev dependencies
Release 3.4.0
Changed
- migrated to eslint 9 flat config
Release 3.3.0
Added
- property
placeholder
toFormattedInput
component.
Release 3.2.0
Added
- Export of typeahead helpers and
useDebounceHook
hook.
Fixed
- Hide placeholder on multiple
AsyncTypeAheadInput
andStaticTypeAheadInput
when at least one option is selected. - Typeahead helpers return type from
TypeaheadOption[]
toTypeaheadOptions
, since typeaheads are not intended to be used with mixedstring
andLabelValueOption
options.
Release 3.1.1
Fixed
- Selected options were still visible and selectable using multiple
AsyncTypeAheadInput
. This is now fixed and active options are now filtered on searching once have been previously selected.
Release 3.1.0
Added
ColorPickerInput
component which provide both text input and color picker in order to choose color.- The inputs accepts color in any format, but the picker will set the color in the format you provided as props. By default, this behaviour is prevented and onBlur the provided color will be parsed to specified format. In case you want to disable this behaviour, you can provide the
convertColorToFormatOrUndefinedOnBlur
property as false. - Color Picker is by default with MUI style, use
useBootstrapStyle
property for applying a "bootstrap-like" style.
- The inputs accepts color in any format, but the picker will set the color in the format you provided as props. By default, this behaviour is prevented and onBlur the provided color will be parsed to specified format. In case you want to disable this behaviour, you can provide the
Release 3.0.1
Fixed
- Selected option was wrongly filtered when using single
AsyncTypeAheadInput
. This is now fixed and active option is visible on searching even if has been selected. - Both
AsyncTypeAheadInput
andStaticTypeAheadInput
rendering options issue due to duplicated labels. By default, the new key is the concatenation of label and value in case of typeahead option type, and label in case of string option type. In case the issue persist with above change, you can use thegetOptionKey
property to override it with a unique key. - Query for
AsyncTypeAheadInput
, which was wrongly executed with empty search string once the input was manually cleaned-up.