Skip to content

Commit

Permalink
fix(frontend): fix hamburger menu not closing after submitting location
Browse files Browse the repository at this point in the history
closes #9
  • Loading branch information
rafaVls committed Jan 29, 2022
1 parent 939230d commit d395dd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/components/HamburgerMenu/HamburgerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function HamburgerMenu(): ReactElement {
function handleSubmit(e: React.FormEvent<HTMLFormElement>): void {
e.preventDefault();
getGeocoding && getGeocoding(searchValue);
menuElement.current?.classList.toggle("open");
setValue("");
}

Expand Down

0 comments on commit d395dd2

Please sign in to comment.