Beaver Builder
-
Will MMM integrate with Beaver Builder Child Theme? We seem to be encountering a problem with the mobile menu of MMM and Beaver. The mobile menu shows, but as soon as you click on it (including sub-menus), the menu closes. I’ve traced this to what appears to be a caused by BB theme.min.js (code excerpt below).
closeMenu() is firing when there’s a click in the body, menuType gets set to ‘dropdown’, and it follows the pageNav.find( ‘.navbar-toggle’ ).trigger( ‘click’ ) path. The menu closes and the sub menu never gets shown.
Anyone encounter this and have a good BB and MMM fix?
Thanks!/** * Closes Dropdown or Flyout Menu when clicked anywhere on the page. * * @since 1.7.9 * @param {Object} e */ closeMenu: function (e) { var menuType = $( 'body' ).hasClass( 'fl-nav-mobile-offcanvas' ) ? 'flyout' : 'dropdown', isDropdownMenuActive = $( '.fl-page-nav-collapse' ).hasClass( 'in' ), isFlyoutMenuActive = $( '.fl-page' ).hasClass( 'fl-nav-offcanvas-active' ), pageNav; if ( undefined === e || undefined === e.target ) { return; } if ( 'dropdown' === menuType && isDropdownMenuActive ) { pageNav = $( '.navbar-collapse.in' ).closest( '.fl-page-nav' ); pageNav.find( '.navbar-toggle' ).trigger( 'click' ); } else if ( 'flyout' === menuType && isFlyoutMenuActive) { $( '.fl-offcanvas-close' ).trigger( 'click' ); } },
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Beaver Builder’ is closed to new replies.