frontend: fix event listeners

This commit is contained in:
Simon 2023-02-10 18:35:18 +01:00
parent 9b9f31420e
commit 5e66bc7446

View File

@ -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) {