Page 1 of 1

NavView - Sub-menu

Posted: Wed Feb 13, 2019 8:05 pm
by russelguinarez
Hi,

When a user clicks the from the main menu with a dropdown-toggle option, a sub-menu will appear. However, when the user clicks from one of the sub-menu, the sub-menu will disappear and will only show the main menu.

How to change this? So when I click from one of the sub-menu, the sub-menu will stay at is?

Re: NavView - Sub-menu

Posted: Wed Feb 13, 2019 8:20 pm
by olton

Code: Select all

$(".navview-menu .navview-menu").on("click", "a", function(e){
       ....
        e.preventDefault();
        e.stopPropagation();
    });

Re: NavView - Sub-menu

Posted: Thu Feb 14, 2019 12:31 pm
by russelguinarez
Wow! It worked. Thanks a lot.