We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9275bf0 commit 29c70fcCopy full SHA for 29c70fc
src/frontend/src/Components/map/LocationSearch.js
@@ -22,7 +22,9 @@ export default function LocationSearch(props) {
22
const [options, setLocationOptions] = useState([]);
23
24
const setSelectedLocation = payload => {
25
- window.document.activeElement.blur(); // De-focus textbox
+ if (payload.length > 0) {
26
+ window.document.activeElement.blur(); // De-focus textbox
27
+ }
28
dispatch(action(payload));
29
};
30
0 commit comments