After upgrading to 2.0.0-alpha4 from 2.0.0-alpha3, the dropdowns failed to trigger for anonymous and authenticated users. On hover the 'open' class is not displaying unless you're logged in as a content editor / admin-type role where the Drupal admin menu also appears.

Admin Toolbar 3.4.1
Barrio Bootstrap 5 Theme 5.5.12
Drupal Core 9.5.9
Also using SmartMenus https://github.com/vadikom/smartmenus

Reverting to 2.0.0-alpha3 solved the issue, but stuck there for now. Any ideas?

Comments

yospyn created an issue. See original summary.

todea’s picture

The frontend.js file located at /modules/contrib/tb_megamenu/dist/js/frontend.js is missing the throttle function.

I copied over the function from the /modules/contrib/tb_megamenu/js/frontend.js file.

Make sure to update the throttled variable too

  //var throttled = _.throttle(updateTBMenus, 100);
  const throttled = throttle(updateTBMenus, 100);
themodularlab’s picture

Thanks @todea. Looks like something compiled incorrectly. A fix is forthcoming for both the 2.x and 3.x branches.

themodularlab’s picture

  • themodularlab committed da319480 on 3.x
    Merge branch 'bugfix/TB-3366261' into 3.x
    
    * bugfix/TB-3366261:
      Issue...

  • themodularlab committed dc449547 on 3.x
    Issue #3366261 by yospyn, themodularlab, todea: Dropdowns Not Triggering...

  • themodularlab committed e31b7430 on 2.x
    Issue #3366261 by yospyn, themodularlab, todea: Dropdowns Not Triggering...
themodularlab’s picture

Status: Active » Fixed
themodularlab’s picture

yospyn’s picture

Thanks @todea and @themodularlab fix/new version works great.

  • themodularlab committed e31b7430 on 3.x
    Issue #3366261 by yospyn, themodularlab, todea: Dropdowns Not Triggering...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.