During implementation of shepherdjs to our web app, i would like to trigger the profile-item submenu open. As I understand, to open and close menu is just add and remove class operation. Here is my problem.
I use Avalon 3.0.1. I can handle it by adding and removing css classes if i disable line 250 in layout.js. But this time topbar menu is not working as expected, submenu is not closed.
layout.js line 249-251:
Code: Select all
if(!$this.topbarMenuClick && !$this.topbarLinkClick) {
$this.topbarItems.find('.active-top-menu').removeClass('active-top-menu');
}
Code: Select all
const item = $('body > .layout-wrapper .topbar .topbar-items li.profile-item');
const submenu = $('body > .layout-wrapper .topbar .topbar-items li.profile-item ul');
item.addClass('active-top-menu');
submenu.addClass('fadeInDown');
Code: Select all
const item = $('body > .layout-wrapper .topbar .topbar-items li.profile-item');
const submenu = $('body > .layout-wrapper .topbar .topbar-items li.profile-item ul');
item.removeClass('active-top-menu');
submenu.removeClass('fadeInDown');
How can i resolve this? Any idea?