Releases: i-like-robots/react-tag-autocomplete
Releases · i-like-robots/react-tag-autocomplete
v7.5.0
v7.4.0
v7.3.0
- Added support for rendering a custom selected tags list component using
renderTagListprop
v7.2.0
- Fixed an issue where deleting multiple selected tags would fail to maintain cursor focus
- Refactored focus trap to return focus to the component root instead of the input
v7.1.0
- Added support for rendering a custom list box component using
renderListBoxprop - Fixed an issue where auto scrolling to the active option in the list box could also scroll parent containers
v7.0.1
- Fixed an issue where the
onShouldExpandandonShouldCollapsecallbacks would receive the previous value on input
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.