dbushell / Responsive-Off-Canvas-Menu

A responsive off-canvas menu using CSS transforms and transitions. This repository contains several demos to support a Smashing Magazine article.
820 stars 217 forks source link

Clicking Navigation Links closes menu but does not navigate to page #18

Open kray0151 opened 9 years ago

kray0151 commented 9 years ago

Hi there,

I'm adapting this for use on my site, and I'm running into a strange issue. When The nav is open and I click a link the menu closes, but the page does not reload to the new content. It is not a z-index issue, and may be due to a conflicting style, but I haven't found it yet. Has anyone else had this happen and what did you do to fix it? Kristin

kray0151 commented 9 years ago

Just in case anyone else runs into this:

I changed the ID for the div enclosing my navigation. I must have missed this line in the javascript:

if (nav_open && !hasParent(e.target, 'nav')) {

I changed 'nav' to my ID and it works like a charm.