diff options
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/SearchBox.js | 3 |
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}> |