Custom Themes / Dropdowns on Vertical Menu

Hi Community, if you are using “Custom Themes” you may have issues with dropdowns on vertical menu, here is a code to fix this issue:

$('.dropdown-submenu > a').click(function (event) {
    var dropdownContext = $(this).parent().find('.dropdown-menu')[0];
    if ($(dropdownContext).css('display') === 'none') {
        $(dropdownContext).css('display', 'contents');
    } else {
        $(dropdownContext).css('display', 'none');
    }
    event.stopPropagation();
});
3 Likes