Problem/Motivation

The menu works fine other wise for anonymous users but if logged in as admin with admin toolbar enabled, it stops working. I dont see any of that js controlled class toggling on hover.

Steps to reproduce

Login with admin toolbar enabled as admin while tb megamenu is in use.

CommentFileSizeAuthor
#3 tb_megamenu-3204998-3.patch1.91 KBcrasx
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rockaholiciam created an issue. See original summary.

quondam’s picture

Status: Active » Postponed (maintainer needs more info)

@rockaholiciam I'm unable to reproduce the issue you're reporting here - and have never encountered it in the course of creating a number of patches for the TB Mega Menu module, despite always having admin toolbar enabled. Have you already confirmed that disabling all of the admin toolbar modules allows your menu to work as expected while logged in? Does this issue occur for you under a fresh install of Drupal 8 with no other modules enabled besides admin toolbar and TB? Are there any errors or warnings thrown in your browser's JavaScript console? Are you using a custom theme and/or custom JS that might overlap with the TB functionality?

We'll need some additional info and help from you to narrow down the issue and address it. Considering that I've never encountered this one I'm marking the issue as postponed - but please feel free to move back to active if you're still seeing it and able to provide specific steps to reproduce.

crasx’s picture

Status: Postponed (maintainer needs more info) » Needs work
StatusFileSize
new1.91 KB

I just came across this issue and traced it to the frontend js. In the drupal behavior, we need to pass the proper context to each jquery call. Here is a partial patch with a few examples, fixed the issue in my case.

imclean’s picture

Version: 8.x-1.0-rc3 » 8.x-1.x-dev
Status: Needs work » Needs review
themodularlab’s picture

Assigned: Unassigned » themodularlab

themodularlab’s picture

Status: Needs review » Reviewed & tested by the community

This has been reviewed and tested. It will be included in the next release.

themodularlab’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

TrinityDan’s picture

I am still seeing this issue in Internet Explorer only running TB Mega Menu version 8.x-1.2.

themodularlab’s picture

@TrinityDan, What version of Drupal are you on? Also have you looked at your browser's console logs? My gut feeling is there is a JS conflict somewhere, especially since you are using IE.

TrinityDan’s picture

You're probably right. I'm running Drupal 9.2.1. When maintenance mode is off and the menu isn't working, there are no errors shown in the console. Once I turn maintenance mode on and use the menu, I get a script error:

SCRIPT1002: Syntax error
shepherd.min.js (5,505)