frontend: fix event listeners
This commit is contained in:
parent
9b9f31420e
commit
5e66bc7446
@ -156,9 +156,9 @@ function setupMap(
|
|||||||
fetcher.call(async () => await fetchAndDisplayZipCode(coords));
|
fetcher.call(async () => await fetchAndDisplayZipCode(coords));
|
||||||
});
|
});
|
||||||
|
|
||||||
mapImg.onmouseleave = (_event: MouseEvent) => {
|
mapImg.addEventListener("mouseleave", (_event: MouseEvent) => {
|
||||||
displayZipCode(zipCodeElement, null, null, null, null);
|
displayZipCode(zipCodeElement, null, null, null, null);
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupSearchBar(zipCodeElement: HTMLParagraphElement) {
|
function setupSearchBar(zipCodeElement: HTMLParagraphElement) {
|
||||||
|
Loading…
Reference in New Issue
Block a user