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