Compare commits
No commits in common. "8a99e9837e0cea331b56971598c4cbff16b48f5c" and "20de548763099115e884a853041d2a35aedaed10" have entirely different histories.
8a99e9837e
...
20de548763
@ -1,4 +1,4 @@
|
|||||||
import { Throttler } from "./Throttler";
|
import { Throttler } from "./utils";
|
||||||
|
|
||||||
type Position = {
|
type Position = {
|
||||||
x: number;
|
x: number;
|
||||||
@ -105,7 +105,7 @@ function setupSearchBar(zipCodeElement: HTMLParagraphElement) {
|
|||||||
searchBar.onkeypress = (event: KeyboardEvent) => {console.log(event);
|
searchBar.onkeypress = (event: KeyboardEvent) => {console.log(event);
|
||||||
event.key !== "Enter" || !isNaN(parseInt(event.key));}
|
event.key !== "Enter" || !isNaN(parseInt(event.key));}
|
||||||
|
|
||||||
searchBar.addEventListener("submit", async (event: SubmitEvent) => {
|
searchBar.addEventListener("submit", async (event: MouseEvent) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
const inputValue = searchInput.value;
|
const inputValue = searchInput.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user