parent
b7bebdbc75
commit
8c24e64a5e
@ -137,10 +137,15 @@ export default class ActionbarSearch extends Component {
|
||||
|
||||
handleTokenAdd = (value) => {
|
||||
const { tokens } = this.props;
|
||||
const { inputValue } = this.state;
|
||||
|
||||
const newSearchTokens = uniq([].concat(tokens, value));
|
||||
|
||||
this.setState({
|
||||
inputValue: inputValue === value ? '' : inputValue
|
||||
}, () => {
|
||||
this.handleSearchChange(newSearchTokens);
|
||||
});
|
||||
}
|
||||
|
||||
handleTokenDelete = (value) => {
|
||||
|
Loading…
Reference in New Issue
Block a user