Skip to content

Commit

Permalink
fix: mobilescrolling (#849)
Browse files Browse the repository at this point in the history
* fix: mobilescrolling
  • Loading branch information
xpy01xpy authored Dec 6, 2024
1 parent cae20b1 commit 221baa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/common/MobileNavbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ for (let i = 0; i < dataSource.length; i++) {
toggleExpanded() {
// document.body.classList.toggle('overflow-hidden');
this.setExpanded(this.getAttribute("aria-expanded") !== "true");
try { window.scroll(0, 0); } catch(err) {}
}

closeOnEscape(e: KeyboardEvent,menuButton) {
Expand Down

0 comments on commit 221baa4

Please sign in to comment.