Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #75 from Code4Nepal/aish-58
Browse files Browse the repository at this point in the history
Take user to the main page when the autocomplete item is selected
  • Loading branch information
aishraj authored Apr 14, 2019
2 parents e605371 + 2f83a11 commit b36cb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parijat-frontend/src/components/searchbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class SearchBox extends Component {
};

onAutocompleteSelect = searchValue => {
this.setState({ searchValue, transliterationSuggestions: [] });
this.props.onSubmit(this.state.searchValue);
};

handleSubmit = evnt => {
Expand Down

0 comments on commit b36cb17

Please sign in to comment.