From 9671c4afeb4a483a6fe3ebb1275dd97bd1dc91be Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 18 Jul 2018 10:50:41 +0300 Subject: clear searchbox on submit --- vnext/src/components/SearchBox.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vnext/src/components') 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 (
-- cgit v1.2.3