Skip to content

Commit 8ff3675

Browse files
committed
Fix issue #165
1 parent 55ac0cd commit 8ff3675

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/common/BasicScripts.astro

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ import { SITE } from '~/config.mjs';
3535
let lastKnownScrollPosition = window.scrollY;
3636
let ticking = true;
3737

38+
attachEvent('#header nav', 'click', function () {
39+
document.querySelector('[data-aw-toggle-menu]')?.classList.remove('expanded');
40+
document.body.classList.remove('overflow-hidden');
41+
document.getElementById('header')?.classList.remove('h-screen');
42+
document.querySelector('#header nav')?.classList.add('hidden');
43+
});
44+
3845
attachEvent('[data-aw-toggle-menu]', 'click', function (_, elem) {
3946
elem.classList.toggle('expanded');
4047
document.body.classList.toggle('overflow-hidden');

src/data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const headerData = {
2424
links: [
2525
{
2626
text: 'Features',
27-
href: '#',
27+
href: '#features',
2828
},
2929
{
3030
text: 'Pricing',

0 commit comments

Comments
 (0)