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

Uncaught syntaxerror cannot read property 'queryselector' #8

Open
katindo opened this issue Jul 5, 2016 · 1 comment
Open

Uncaught syntaxerror cannot read property 'queryselector' #8

katindo opened this issue Jul 5, 2016 · 1 comment

Comments

@katindo
Copy link

katindo commented Jul 5, 2016

Hi! Great plugin thank you very much for sharing!

I run a WordPress website and I implemented everything but I get an error on menu.js line #54
"Uncaught syntaxerror cannot read property 'queryselector' of null."

This is the line this.closeBtn = this.menu.querySelector('.c-menu__close');

Any ideas on how to fix this?

@patrick-wc
Copy link

You should ask on stackoverflow really, but I would guess you forgot to include a .c-menu__close button in your html markup

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

2 participants