v7.0.0
Breaking changes:
- Renamed
autoresizeprop toallowResize - Renamed
delimitersprop todelimiterKeys - Renamed
noSuggestionsTexttonoOptionsText - Renamed
onAdditionprop toonAdd - Renamed
removeButtonTexttodeleteButtonText - Renamed
suggestionComponenttorenderOption - Renamed
tagsprop toselected - Renamed
tagComponenttorenderTag - Removed
addOnBlurprop, can be implemented manually - Removed
inputAttributesprop, userenderInputprop instead - Removed
maxSuggestionsLengthprop, usesuggestionsTransformprop instead - Removed
minQueryLengthprop, useonShouldExpandprop instead - Removed
suggestionsFilterprop, usesuggestionsTransformprop instead
New features and improvements:
- Added
onExpandandonCollapsecallbacks - Added a label sub component to improve accessibility
- Added assistive text notifications for changes to selected tags
- Added support for more combobox keyboard behavior to match the ARIA spec
- Added support for displaying the selected state of options in the listbox
- Added support for scrolling the listbox and maintaining the the active option in view
- Added support for interpolating values with text props
- Added support for displaying disabled state using
isDisabledprop - Added support for displaying invalid state using
isInvalidprop - Added support for related descriptive text using
ariaDescribedByprop - Added support for related error status text using
ariaErrorMessageprop - Added support for controlling the listbox when selecting a tag using
collapseOnSelectprop - Added support for controlling the listbox using
onShouldExpandandonShouldCollapseprops - Added support for activating the first option when the listbox expands using
activateFirstOptionprop - Added support for rendering a custom root component using
renderRootprop - Added support for rendering a custom label component using
renderLabelprop - Added support for rendering a custom input component using
renderInputprop - Added support for rendering a custom text highlight component using
renderHighlightprop
Other changes:
- When the
allowNewprop is enabled a new tag can only be created when selecting the new tag option from the listbox. - Tags can no longer be selected multiple times. Choosing a previously selected tag will now trigger a deletion.
Please refer to the migration guide if upgrading from v6 to v7.