- Added
newTagTextoption to display a prompt in the suggestions list to create a new tag when theallowNewoption is enabled (cml391) - Refactored call of
onAdditioncallback to always provide a new object instead of passing the selected tag by reference. - Refactored
classNamesoption to merge the provided prop with defaults (alexandernst) - Fixed updates to the
placeholderoption which did not recalculate input size (LarsHassler) - Updated React peer dependency support to include 17+
- Updated example page with a new demo
- Added
suggestionsTransformoption to allow custom filtering and sorting of suggestions (sibiraj-s)
- Added
clearInputmethod to programmatically clear input text - Added
suggestionComponentoption to allow the rendering of a custom suggestion component (tjphopkins) - Added
searchWrappertoclassNamesoption - Added ES6 package and
"module"entry point - Added
idoption to configure the component ID - Added
removeButtonTextoption to configure the selected tag remove button title attribute - Refactored
ariaLabeloption toariaLabelTextto match other text options - Refactored
placeholderoption toplaceholderTextto match other text options - Refactored keyboard event handlers to use
KeyboardEvent.key - Refactored event handlers and callbacks to use
onprefixes - Refactored
classNamesoption to avoid creating new and merging objects for each top-level props change - Refactored
deleteTagmethod so it no longer clears the input text when a tag is removed - Refactored
delimitersoption to be an array ofKeyboardEvent.keyvalues - Refactored
onInputcallback to provide basic support fordelimitersentered on soft keyboards - Removed
clearInputOnDeleteoption - Removed
autofocusoption - Removed
delimiterCharsoption - Updated React peer dependency to 16.5+
- Fixed an issue where cursor focus could be lost after removing a selected tag
- Added
ariaLabeloption (Herdismaria)
- Fixed an issue where the
componentDidUpdate()callback of the input component can be called too many times
- Added
noSuggestionsTextoption (jraack)
- Fixed an issue with the delimiter key logic which would attempt to add a previously selected suggestion even when it was no longer in the suggestion list.
- Fixed an issue with suggestion highlighting when the entered query is blank
- Added the current query as the second argument for the
suggestionsFilteroption
- Added
suggestionsFilteroption (paulshannon)
- Added
clearInputOnDeleteoption (yefrem)
- Updated contents of package tarball to remove unnecessary files and decrease filesize
- Removed unnecessary
componentWillReceiveProps()method from input component
- Added
handleValidateoption (axelniklasson)
- Fixed missing
onChangeattribute warnings in development mode
- Added
addOnBluroption (APILLSBURY and jedrzejiwanicki)
- Added
inputAttributesoption (juliettepretot)
- Refactored input into a controlled component (also fixes Preact compatibility)
- Refactored focus and blur handlers to capture events (also fixes Preact compatibility)
- Added
handleFocusandhandleBlurcallbacks (Pomax) - Updated dependencies (ajmas)
- Fixed return key submitting containing form when
minQueryLengthis set to 0 and suggestions are active (Drahoslav7)
- Added
delimitersproperty to override keyboard codes for picking suggestions (Pomax)
- Updated component compatibility with React v15.5 which silences deprecation warnings
- Refactored examples code away from
createClassto ES6 syntax
- Add
allowBackspaceoption to disable the ability to delete the selected tags when backspace is pressed while focussed on the text input - Refactors
updateInputWidthmethod to update when any props change (@joekrill)
- Added
tagComponentoption to allow the rendering of a custom tag component
- Fixed cursor focus being lost when clicking a suggestion
- Fixed word boundary regex restricting suggestions to ascii characters
- Fixed unescaped queries throwing an exception when being converted to regexp
- Fixed
maxSuggestionsLengthnot being passed to suggestions component
- Removed
delimitersoption - Added support for jsnext entry point
- Removed functionality to hide suggestions list when escape is pressed
- Added functionality to hide suggestions list when input is blurred
- Added class name to component root when input is focused
- Refactored components to ES6 class syntax and stateless functions
- Refactored components to use Standard code style
- Refactored
classNamesoption to better match usage and use BEM naming convention
- Fixed React semver that was too tight
- Updated to support React 15.0.0
- Added
allowNewoption - Fixed incorrect partial matches when adding a tag
- Fixed mising index from active descendent attribute
- Added
classNamesoption
- Fixed missing
typeattribute from tag buttons
- Fixed out of date dist package
- Removed
busyoption and status indicator - Added
maxSuggestionsLengthoption