aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/components/SearchBox.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/vnext/src/components/SearchBox.js b/vnext/src/components/SearchBox.js
index 612d860b..e64c8be4 100644
--- a/vnext/src/components/SearchBox.js
+++ b/vnext/src/components/SearchBox.js
@@ -16,6 +16,9 @@ export default class SearchBox extends React.Component {
onSubmit = (event) => {
event.preventDefault();
this.props.onSearch(this.state.search);
+ this.setState({
+ search: ''
+ });
}
render() {
return (<form onSubmit={this.onSubmit}>