From 21073f3f151bde1bb00f97524ffd6f73c21f90e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Zen?= Date: Fri, 2 Dec 2016 17:55:07 -0200 Subject: [PATCH] Clean state after search command. Closes #124 --- src/components/FindBar/FindBar.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/FindBar/FindBar.js b/src/components/FindBar/FindBar.js index a9e12896..fd78b6bf 100644 --- a/src/components/FindBar/FindBar.js +++ b/src/components/FindBar/FindBar.js @@ -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 });