zurb/foundation — Issue #290: Getting Flyout to close
Author: rsentry
Created: 2012-02-06 08:33:12+00:00
State: open

When using the navbar, I want to be able to click on a link the flyout menu and then have the flyout menu close. Right now it only closes when the mouse moves out of the flyout box. I tried adding this '$('.nav-bar li .flyout:visible').hide();' after I click on a link in the flyout and it successfully closes it. But it can't be reopened because it has display:none for the style now. What is the best way to close the menu through javascript.