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

closing the nav panel on clicking one of the links #75

Open
4pixels opened this issue Jul 28, 2016 · 2 comments
Open

closing the nav panel on clicking one of the links #75

4pixels opened this issue Jul 28, 2016 · 2 comments

Comments

@4pixels
Copy link

4pixels commented Jul 28, 2016

Is it possible to include the navigation panel into the scope of easyClose. At the moment I can click anywhere on the page to close the panel. As I have a single scrolling page I want the nav panel to close when I click on a link. I've tried writing a little jQuery animate (the panel back off screen), but I then have to click the hamburger button twice to get it to work, ie I need to find a way of refreshing the panel properly after the click (close) event.

Andy

@cooperhu
Copy link

cooperhu commented Sep 8, 2016

Hey man, IDK if you figured out how to do this, but you can set a trigger click on .menu-link when ever a link inside .panel is clicked!! Very simple (:

$('.panel a').on('click', function() { $('.menu-link').trigger('click'); });

@stevematthewroberts
Copy link

New to this, but where do I place the above?

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

3 participants