zurb / foundation-apps

The first front-end framework created for developing fully responsive web apps.
http://foundation.zurb.com/apps
MIT License
1.58k stars 216 forks source link

Panels not closing automatically when a link is clicked. #738

Open ksr583 opened 8 years ago

ksr583 commented 8 years ago

The docs for Panels say: "Links (any element with an href or ui-sref attribute) inside panels automatically close the panel when clicked." That is not the case for me at the moment; just upgraded to 1.2. For the moment I've worked around it by adding zf-close="" to every link in the panel menu.

rcpaul commented 8 years ago

Currently, panels only close automatically when links are clicked when the window is small. See https://github.com/zurb/foundation-apps/blob/master/js/angular/components/panel/panel.js#L156.