ColorlibHQ / gentelella

Free Bootstrap 4 Admin Dashboard Template
https://colorlib.com/polygon/gentelella/index.html
MIT License
21.07k stars 6.86k forks source link

How to avoid dropdown to be closed and open on click list inside it? #465

Closed ammydon closed 7 years ago

ammydon commented 7 years ago

First of all thanks to create this theme its very useful and nice design you created. I have just issue with your dropdown menu. If i click any list inside main main ul then main ul will closed immediately and opens too. i dont want to close my ul when i click on any of the list inside it. I used

$(".child_menu").click(function(event) {
    event.stopPropagation();
});

to overcome my issue but nothing happens. please help me with the same bro. how to remove that function of slideUp and slideDown on list.

Crouxie commented 7 years ago

This piece of code is responsible for menu sliding: $SIDEBAR_MENU.find('a').filter(function () { return this.href == CURRENT_URL; }).parent('li').addClass('current-page').parents('ul').slideDown(function() { setContentHeight(); }).parent().addClass('active');

AndreiCN commented 7 years ago

We already pointed this issue, seems like it's a common one, are some duplicated tickets about it. We will take care of ti as soon as possible, thank you !