christophery/pushy

Desktop: Close '.pushy ul ul ' when clicking away from element

jontruelove opened this issue · 0 comments

I would like to see two methods of closing desktop submenu: Click .pushy button again OR click anywhere else on the HTML document.

Similarly, in mobile view, after exposing nav.pushy, tapping button.menu-btn again should indeed hide nav.pushy but should also add .pushy-submenu-closed class to li.pushy-submenu.

Thank you.