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 authored and ray-oxd committed Apr 30, 2024
1 parent d38c910 commit 177f92f
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 177f92f

Please sign in to comment.