Fixes search filtering issues (#2966) (#3011)

This commit is contained in:
Nicolas Gotchac 2016-10-31 15:00:23 +01:00 committed by Gav Wood
parent b7bebdbc75
commit 8c24e64a5e

View File

@ -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.handleSearchChange(newSearchTokens); this.setState({
inputValue: inputValue === value ? '' : inputValue
}, () => {
this.handleSearchChange(newSearchTokens);
});
} }
handleTokenDelete = (value) => { handleTokenDelete = (value) => {