Topic: sideNav problem
                  
                  Bonanos
                  pro
                  asked 5 years ago
                
Hi I've updated to 4.17, made no changes to code but for some reason sideNav and dropdowns don't work?
The only error I get is Uncaught TypeError: $(...).sideNav is not a function ?
The code for the sideNav is as follows :
$(document).ready(function () {
        $(".button-collapse").sideNav();
        var sideNavScrollbar = document.querySelector('.custom-scrollbar');
        var ps = new PerfectScrollbar(sideNavScrollbar);
        $('.button-collapse').sideNav({
        edge: 'left',
        slim: false,
        closeOnClick: false,
        breakpoint: 1440,
        menuWidth: 280,
        timeDurationOpen: 300,
        timeDurationClose: 300,
        timeDurationOverlayOpen: 50,
        timeDurationOverlayClose: 200,
        easingOpen: 'easeOutQuad',
        easingClose: 'easeOutCubic',
        showOverlay: true,
        showCloseButton: false
      });
     });
and the Dropdown html is as it always was.... any suggestions? Are there new requirements to use them in the new version?
Cheers Shaun
                      
                      Bonanos
                      pro
                        answered 5 years ago
                    
Hi Grzegorz, I got it sorted, thanks. Set to resolved.
                      
                      Bonanos
                      pro
                        answered 5 years ago
                    
Ok sideNav issue fixed, but dropdown is still not showing even though code is identical to your example on the site?
Grzegorz Bujański free commented 5 years ago
Hi. I can't reproduce this error. Can you please create snippet here: https://mdbootstrap.com/snippets/ I will look at this.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.17.0
- Device: laptop
- Browser: chrome
- OS: windows 8
- Provided sample code: No
- Provided link: No