Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgilbers committed Sep 25, 2024
1 parent d3b52e2 commit 7cdd2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ searchBar.addEventListener('keyup', function (event) {
showList(inputValue)
if (event.key === 'Enter') {
window.sendSearchQuery(inputValue)
activeTarget = true
}
} else { // remove cancel button if it exists
searchGroup.lastChild.id === 'clearSearchButton' && resetSearchbar()
Expand All @@ -122,6 +121,7 @@ window.sendSearchQuery = (inputValue) => {
removeList()
const product = findProduct(inputValue, userPosition)
if (product) {
activeTarget = true
if (lastProduct) {
lastProduct.product.hideMarker()
}
Expand Down

0 comments on commit 7cdd2b8

Please sign in to comment.