Skip to content

Commit

Permalink
fixed mobile keyboard not closing when a search suggestion is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
kimamov authored and Sebastian-Herrlinger committed Nov 2, 2020
1 parent 989489f commit 65ca08c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ export const Search = ({ className = "" }: { className?: string }) => {
id: "autocomplete",
options: possibilities.results.map((result) => result.name),
getOptionLabel: (option) => option,
onChange: (evt, value) => {
onChange: (event, value) => {
dispatch(switchViewToPlace(value));
},
blurOnSelect: true
});

const handleSearch = (event) => {
Expand Down

0 comments on commit 65ca08c

Please sign in to comment.