Slide-Push-Menus icon indicating copy to clipboard operation
Slide-Push-Menus copied to clipboard

Uncaught syntaxerror cannot read property 'queryselector'

Open katindo opened this issue 8 years ago • 1 comments

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?

katindo avatar Jul 05 '16 15:07 katindo

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

patrick-wc avatar Jul 07 '16 11:07 patrick-wc