Topic: Mega menu not working
Expected behavior The drop down menus should work Actual behavior When clicking the drop down nothing happens Resources (screenshots, code snippets etc.) I bought the angular pro version does this mean I bought the wrong stuff? Or am I missing modules? I’m not exactally new to angular but new to all this stuff on this site
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Free
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: 9.3.1
- Device: Desktop
- Browser: Chrome
- OS: Win10
- Provided sample code: No
- Provided link: No
Related topics
Arkadiusz Idzikowski staff commented 5 years ago
Plase add the code that you used to render the mega menu to the first post. Are there any errors in the console when you try to open the dropdown? Did you follow our quick start guide to configure your Angular project properly?
https://mdbootstrap.com/docs/angular/getting-started/quick-start/
Mike Lupo premium commented 5 years ago
I pasted code below. as i write this i realize i did install the angular bootstrap modules, but not the pro version using OAuth... I will test this later, you can close this ticket, if i have another issue ill re-open :) I used the standard HTML that it was showing to use
Navbar
also added the javascript $('.multi-level-dropdown .dropdown-submenu > a').on("click", function(e) { var submenu = $(this); $('.multi-level-dropdown .dropdown-submenu .dropdown-menu').removeClass('show'); submenu.next('.dropdown-menu').addClass('show'); e.stopPropagation(); });
$('.multi-level-dropdown .dropdown').on("hidden.bs.dropdown", function() { // hide any open menus when parent closes $('.multi-level-dropdown .dropdown-menu.show').removeClass('show'); });
Arkadiusz Idzikowski staff commented 5 years ago
Is this problem resolved?