Slicknav and vs 5.7.4.2
Permalink
I have been using slicknav (http://slicknav.com) for mobile navigation for a while now. I have it running fine on several builds including 5.7.3.1, but I just started a new build on 5.7.4.2 I'm getting a type error.
I ran chrome inspector and it says specifically .slicknav is what is undefined.
I have no idea why this is no longer working, but any help would be awesome.
I have my app.js loading in the footer. No calls to jQuery, or anything like that. I did move the js and css for slicknav into my template view assets, but it wasn't working before I did that.
[Error] TypeError: undefined is not a function (evaluating '$('.menubar').slicknav({ prependTo:'.nav-menu-bar' })') (anonymous function) j fireWith ready J
I ran chrome inspector and it says specifically .slicknav is what is undefined.
I have no idea why this is no longer working, but any help would be awesome.
I have my app.js loading in the footer. No calls to jQuery, or anything like that. I did move the js and css for slicknav into my template view assets, but it wasn't working before I did that.
first of all slicknav requires jQuery so you need to load it. Here however the problem seems to be that it can't find the slicknav script.
2 possibilities: either it's not loaded at all or it is loaded after the call to activate it so your script can't find it. You should check that.