- Added
clearSelectedIndex
method to programmatically clear the currently selected suggestion (joelposti)
- Added
newTagText
option to display a prompt in the suggestions list to create a new tag when theallowNew
option is enabled (cml391) - Refactored call of
onAddition
callback to always provide a new object instead of passing the selected tag by reference. - Refactored
classNames
option to merge the provided prop with defaults (alexandernst) - Fixed updates to the
placeholder
option which did not recalculate input size (LarsHassler) - Updated React peer dependency support to include 17+
- Updated example page with a new demo
- Added
suggestionsTransform
option to allow custom filtering and sorting of suggestions (sibiraj-s)
- Added
clearInput
method to programmatically clear input text - Added
suggestionComponent
option to allow the rendering of a custom suggestion component (tjphopkins) - Added
searchWrapper
toclassNames
option - Added ES6 package and
"module"
entry point - Added
id
option to configure the component ID - Added
removeButtonText
option to configure the selected tag remove button title attribute - Refactored
ariaLabel
option toariaLabelText
to match other text options - Refactored
placeholder
option toplaceholderText
to match other text options - Refactored keyboard event handlers to use
KeyboardEvent.key
- Refactored event handlers and callbacks to use
on
prefixes - Refactored
classNames
option to avoid creating new and merging objects for each top-level props change - Refactored
deleteTag
method so it no longer clears the input text when a tag is removed - Refactored
delimiters
option to be an array ofKeyboardEvent.key
values - Refactored
onInput
callback to provide basic support fordelimiters
entered on soft keyboards - Removed
clearInputOnDelete
option - Removed
autofocus
option - Removed
delimiterChars
option - Updated React peer dependency to 16.5+
- Fixed an issue where cursor focus could be lost after removing a selected tag
- Added
ariaLabel
option (Herdismaria)
- Fixed an issue where the
componentDidUpdate()
callback of the input component can be called too many times
- Added
noSuggestionsText
option (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
suggestionsFilter
option
- Added
suggestionsFilter
option (paulshannon)
- Added
clearInputOnDelete
option (yefrem)
- Updated contents of package tarball to remove unnecessary files and decrease filesize
- Removed unnecessary
componentWillReceiveProps()
method from input component
- Added
handleValidate
option (axelniklasson)
- Fixed missing
onChange
attribute warnings in development mode
- Added
addOnBlur
option (APILLSBURY and jedrzejiwanicki)
- Added
inputAttributes
option (juliettepretot)
- Refactored input into a controlled component (also fixes Preact compatibility)
- Refactored focus and blur handlers to capture events (also fixes Preact compatibility)
- Added
handleFocus
andhandleBlur
callbacks (Pomax) - Updated dependencies (ajmas)
- Fixed return key submitting containing form when
minQueryLength
is set to 0 and suggestions are active (Drahoslav7)
- Added
delimiters
property to override keyboard codes for picking suggestions (Pomax)
- Updated component compatibility with React v15.5 which silences deprecation warnings
- Refactored examples code away from
createClass
to ES6 syntax
- Add
allowBackspace
option to disable the ability to delete the selected tags when backspace is pressed while focussed on the text input - Refactors
updateInputWidth
method to update when any props change (@joekrill)
- Added
tagComponent
option 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
maxSuggestionsLength
not being passed to suggestions component
- Removed
delimiters
option - 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
classNames
option to better match usage and use BEM naming convention
- Fixed React semver that was too tight
- Updated to support React 15.0.0
- Added
allowNew
option - Fixed incorrect partial matches when adding a tag
- Fixed mising index from active descendent attribute
- Added
classNames
option
- Fixed missing
type
attribute from tag buttons
- Fixed out of date dist package
- Removed
busy
option and status indicator - Added
maxSuggestionsLength
option