When using the collapsable menu for small screen, if you have a menu item that has child items, you cannot use the child items. When you click the parent item, the entire menu collapses when the child menu should expand. I corrected the javascript error. Can you please also fix this in the official version, so I won't lose my fix when there's an update?

I attached the bootstrap_agency.js file (I had to rename it to txt to upload it)? As you can see in the file, I replaced
$('#navbar .navbar-collapse ul li a').click(function()
with
$('#navbar .navbar-collapse ul li:not(.dropdown) a').click(function()
so menu items with class dropdown don't trigger the collapse of the menu.

Comments

mark antony created an issue. See original summary.

johan den hollander’s picture

Thank you mark antony,
I used your fix and it works great!

johan den hollander’s picture

Status: Needs review » Reviewed & tested by the community

  • mark antony authored c405590 on 7.x-1.x
    Issue #2658550 by mark antony, jcnventura: Menu collapses when trying to...
jcnventura’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the (almost) patch!

Status: Fixed » Closed (fixed)

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