Hi, just purchased the Megamenu module and It seems, it's not working well with Bootstrap, maybe a conflict on jQuery-requirements? Things like Drag'n'Drop are not working. In the console I get an error about the loaded jQuery version, but only on the edit pages for megamenu:
Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
Jquery-updte loads version 1.10, but gets lost, because megamenu loads its own jquery version 1.4.4.
A quick n dirty try to swap the included jquery.js and jquery-ui.min.js produced other warnings in console:
Uncaught TypeError: Cannot read property 'msie' of undefined
at jquery.cleditor.js?om1ly0:156
at jquery.cleditor.js?om1ly0:1149
(anonymous) @ jquery.cleditor.js?om1ly0:156
(anonymous) @ jquery.cleditor.js?om1ly0:1149
md.tree-menu.js?om1ly0:62 Uncaught TypeError: $(...).live is not a function
at HTMLDocument.<anonymous> (md.tree-menu.js?om1ly0:62)
at c (jquery.js?v=1.4.4:4)
at Object.fireWith [as resolveWith] (jquery.js?v=1.4.4:4)
at Function.ready (jquery.js?v=1.4.4:4)
at HTMLDocument.q (jquery.js?v=1.4.4:4)
I looked through the module code and found this in the md_megamodule.module, line 504:
$libraries['jquery']['version'] = '1.4.4';
Can this somehow be fixed? I think, Megamenu is ignoring jQuery-Update and Bootstrap. My temporary fix is to leave the admin pages on the default Bartk theme.
Hi,
Check your email please.
Thank you.
Hi, we are having the same issue with Bootstrap as our theme and we have created a subtheme with the Bootstrap Starter Kit. Is there a solution for this? Thank you.
Hi,
This problem was fix already. Please go to admin/structure/md-megamenu/common-settings and uncheck "Use jquery 1.7.2 and jquery ui 1.8.7 available in megamenu module." , then megamenu will use jquery set by module jquery update, for example jquery 1.10
http://prntscr.com/j438ee
We are in Drupal 8, there is not a md-megamenu in admin/structure. Where else can this be changed? Thank you.
Hi,
With Megamenu ver 8, it uses the default jquery in Drupal core. The latest version of Drupal 8 core uses jquery ver 3.x. Which version of jQuery is being used in your site? You can send us your site url and admin account to check. This problem may not come from our module
Hi, same issue. Drupal 8 and bootstrap 4.
is generating 2 or more instances of the menu.
We also want to disable mobile behavior.
Thanks
Hi Info34,
Please check topic https://megadrupal.com/forum/module-support/mega-menu/4095