Clean state after search command. Closes #124

This commit is contained in:
Cássio Zen 2016-12-02 17:55:07 -02:00
parent 88d02ebb71
commit 21073f3f15

View File

@ -100,8 +100,11 @@ class FindBar extends Component {
if (command.search) {
this.setState({
activeScope: SEARCH,
placeholder: '',
value: '',
placeholder: PLACEHOLDER,
activeScope: null,
}, () => {
this._input.blur();
});
enteredParamValue && this.props.runCommand(SEARCH, { searchTerm: enteredParamValue });