Clean state after search command. Closes #124
This commit is contained in:
parent
88d02ebb71
commit
21073f3f15
@ -100,8 +100,11 @@ class FindBar extends Component {
|
|||||||
|
|
||||||
if (command.search) {
|
if (command.search) {
|
||||||
this.setState({
|
this.setState({
|
||||||
activeScope: SEARCH,
|
value: '',
|
||||||
placeholder: '',
|
placeholder: PLACEHOLDER,
|
||||||
|
activeScope: null,
|
||||||
|
}, () => {
|
||||||
|
this._input.blur();
|
||||||
});
|
});
|
||||||
|
|
||||||
enteredParamValue && this.props.runCommand(SEARCH, { searchTerm: enteredParamValue });
|
enteredParamValue && this.props.runCommand(SEARCH, { searchTerm: enteredParamValue });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user