Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Menu Navigation #1

Open
zoltanszogyenyi opened this issue Aug 17, 2020 · 1 comment
Open

Mobile Menu Navigation #1

zoltanszogyenyi opened this issue Aug 17, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@zoltanszogyenyi
Copy link
Member

Seems like the menu navigation is a bit buggy on mobile. When you select a link it jumps to the relevant div in the background, but it doesn't close the navigation menu that's layered on top of the content.

@zoltanszogyenyi zoltanszogyenyi added the bug Something isn't working label Aug 17, 2020
@zoltanszogyenyi zoltanszogyenyi self-assigned this Aug 17, 2020
@janhorna
Copy link

I experienced the same bug at my website (will post the URL later when we go live). I was able to fix this by:

  1. Adding JS function to each nav item in index.html:
    <a href="#features" class="nav-link" onclick="removeShow()">Features</a>

  2. Creating the function in swipe.js:
    function removeShow() { var element = document.getElementById('navbar_global'); element.classList.remove('show'); }

I am afraid this is not the perfect solution, rather a quick fix that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants