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

Menu disappears #37

Open
dorucazan opened this issue Apr 11, 2017 · 1 comment
Open

Menu disappears #37

dorucazan opened this issue Apr 11, 2017 · 1 comment

Comments

@dorucazan
Copy link

Tested on https://www.adtile.me/fixed-nav/

  1. resize window so menu will collapse
  2. open menu but do not select anything; leave it open
  3. resize window so menu will extend
  4. click on "logo"
@dorucazan
Copy link
Author

dorucazan commented Apr 11, 2017

Maybe not best solution... in fixed-responsive-nav.js, in logo click event listener add one line:

// Select the right navigation item when tapping the logo
document.querySelector(".logo").addEventListener("click", function (e) {
e.preventDefault();
wasNavigationTapped = true;

// Select first navigation item
selectActiveMenuItem(0);

if($(".nav-toggle").css("display") != "none")
// Close navigation
navigation.close();
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant