Compare commits
2 Commits
20de548763
...
8a99e9837e
Author | SHA1 | Date | |
---|---|---|---|
8a99e9837e | |||
c8a38cdd83 |
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user