Skip to content

Commit

Permalink
DBC22-1399: created check for payload length to perserve editing
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrel-oxd committed Apr 26, 2024
1 parent 9bab7c1 commit b250135
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/src/Components/map/LocationSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default function LocationSearch(props) {
const [options, setLocationOptions] = useState([]);

const setSelectedLocation = payload => {
window.document.activeElement.blur(); // De-focus textbox
if (payload.length > 0) {
window.document.activeElement.blur(); // De-focus textbox
}
dispatch(action(payload));
};

Expand Down

0 comments on commit b250135

Please sign in to comment.