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 = {
|
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: MouseEvent) => {
|
searchBar.addEventListener("submit", async (event: SubmitEvent) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
const inputValue = searchInput.value;
|
const inputValue = searchInput.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user