Compare commits

...

2 Commits

Author SHA1 Message Date
8a99e9837e fix searchbar for real 2023-02-07 14:18:50 +01:00
c8a38cdd83 utils.ts -> Throttler.ts 2023-02-07 14:18:00 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { Throttler } from "./utils";
import { Throttler } from "./Throttler";
type Position = {
x: number;
@ -105,7 +105,7 @@ function setupSearchBar(zipCodeElement: HTMLParagraphElement) {
searchBar.onkeypress = (event: KeyboardEvent) => {console.log(event);
event.key !== "Enter" || !isNaN(parseInt(event.key));}
searchBar.addEventListener("submit", async (event: MouseEvent) => {
searchBar.addEventListener("submit", async (event: SubmitEvent) => {
event.preventDefault();
const inputValue = searchInput.value;