aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-18 10:50:41 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit9671c4afeb4a483a6fe3ebb1275dd97bd1dc91be (patch)
tree8b1f9118675f7f2fbe154e126c83f4a256fddc35 /vnext/src
parent85b33a0119e5a427eec18a25584f7140722dd2d9 (diff)
clear searchbox on submit
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}>