Adminlte: Disable onClick auto close for nav menu

Created on 30 Apr 2015  路  5Comments  路  Source: ColorlibHQ/AdminLTE

I just wanna ask about how to disable automatic close for dropdown menu on nav bar for specified menu item like below picture:
autoclose-issue

question

Most helpful comment

This is a Bootstrap related issue. The only way to do that is via javascript:

$("#your-menu-id").on('click', function (e) {
  e.stopPropagation();
});

All 5 comments

This is a Bootstrap related issue. The only way to do that is via javascript:

$("#your-menu-id").on('click', function (e) {
  e.stopPropagation();
});

Thanks for replying and help Abdullah :)

No problem. Did it work?

Yeah it worked but the button group onside it not working since we disabled the event from running in the whole div :sweat_smile:.
I'm working on this solution

I am actually working on a custom mega menu for the premium collection. Thanks for sharing the solution!

screen shot 2015-04-30 at 7 31 11 pm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andyhughes73 picture andyhughes73  路  3Comments

kgoedert picture kgoedert  路  4Comments

fromberg100 picture fromberg100  路  4Comments

RaruRv picture RaruRv  路  3Comments

riklaunim picture riklaunim  路  3Comments