I have navbar-toggle classes added to main menu items that should not have them. The same thing happens in other menu's for example a footer menu.

I assumed it had to do with the custom theme i'm developing but it still happens with the default Bootstrap theme.
Tried to turn of menu related modules and switch back to the default theme but it is still happening. I have yet to find the cause so I hope someone has suggestions what could be causing this.

Piece of menu just to clarify.

<li class="expanded navbar-toggle dropdown" id="toggle_icon">
  <a href="/url" id="toggle_icon" class="navbar-toggle dropdown-toggle" data-target="#" data-toggle="dropdown">Periodes 
  <span class="caret"></span></a>
     <ul class="dropdown-menu">
        <li class="first expanded"><a class="nolink"><i class="fa fa-clock-o" aria-hidden="true"></i>Periodes</a></li>
        <li class="last leaf"><a href="/url">Periode overzicht</a></li>
     </ul>
</li>

Comments

danon1981 created an issue. See original summary.

markhalliwell’s picture

My guess is that there is some custom code, somewhere (perhaps even a custom module or template), in your site that is adding these attributes to the menu item/link.

I cannot help you as this does not happen "out-of-the-box" in any way.

markhalliwell’s picture

Status: Active » Closed (won't fix)
danon1981’s picture

Thanks for your reply and the great module.

There is no custom code or custom module that interfered with menu's. I'm not entirely sure if it is the cause of the behavior but it seems to be related to the menu attributes. After disabling the module and rebuilding the links that where acting up the links are fine.