Uncaught TypeError: Cannot read property ‘querySelector’ of null
-
Uncaught TypeError: Cannot read property ‘querySelector’ of null
at cbpHorizontalSlideOutMenu._init (VM826 frontend.min.js:408)
at new cbpHorizontalSlideOutMenu (VM826 frontend.min.js:398)
at VM826 frontend.min.js:499
at VM826 frontend.min.js:501
at VM826 frontend.min.js:503There is a js error causing my navmenu mobile icon to not be clickable.
cbpHorizontalSlideOutMenu.prototype = {
defaults : {},
_init : function() {
var el;
this.current = -1;
this.touch = Modernizr.touch;
this.menu = this.el.querySelector( ‘.cbp-hsmenu’ );
this.menuItems = this.el.querySelectorAll( ‘.cbp-hsmenu > li’ );
this.menuBg = document.createElement( ‘div’ );
this.menuBg.className = ‘cbp-hsmenubg’;
this.el.appendChild( this.menuBg );
this._initEvents();
},The page I need help with: [log in to see the link]
- The topic ‘Uncaught TypeError: Cannot read property ‘querySelector’ of null’ is closed to new replies.