blur
method for tag input.
required
prop for input.
style
prop for styling top div.
renderTag
prop for custom rendering of tags.
- Define React as a peer dependency.
- Add
classNames
prop for setting all classes on elements. - Rename
clear
toclearInput
and useclear
for clearing entire component of tags.
- Add onClick to component.
- Add beforeTagAdd and beforeTagRemove props.
- Add clear method.
- Add onKeyDown and onKeyUp props.
- When clicking on the component focus on the input.
- Ignore falsey values from
transform
.
- Added prop
validateAsync
to fix bugs in async validation.
- Added option for async
validate
.
- Allow for non-strings as tags.
- Move space from component to css.
- Add uncontrolled usage.
- Add defaultValue prop.
- Remove tags from internal state, TagsInput now behaves as other react input elements taking its value from a prop.
- Remove onBeforeTagAdd, onBeforeTagRemove.
- Rename method
inputFocus
tofocus
. - Rename prop
tags
tovalue
. - Add transform.
- Add
onBlur
event
- Add prop
classNamespace
, for namespacing CSS classes.
- Add UMD support
- Get rid of warnings
"Something is calling a React component directly. Use a factory or JSX instead"
- Get rid of deprecated
transferPropsTo
- Update CSS styles
- Add usage example
validate
prop which is a function that returns true if a tag is valid.- Add tag when input is blurred.
addKeys
prop which defines key code that add a tag, default is Tab (9) and Enter (13)