Is there a way to not close the currently opened submenu when another submenu is clicked?
I'm using pv:menu and like the sidebar menu so far but that's the only option im missing and I could'nt find any information so far.
Thanks in advance
Do not close opened submenu when clicking another
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try removing line 96 at layout.js;
That line closes other open menus, removing it allow having multiple menus at the same time.
Code: Select all
$this.deactivateItems(item.siblings(), true);
Thanks for your suggestion optimus.optimus.prime wrote: ↑05 Feb 2018, 19:18Try removing line 96 at layout.js;
That line closes other open menus, removing it allow having multiple menus at the same time.Code: Select all
$this.deactivateItems(item.siblings(), true);
This does indeed not close other submenus.
However, activated submenu items stay activated if i activate another submenu item.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I did not understand the exact case but with some small script changes to layout.js deactivateItems method, I believe you should be able to customize the behavior according to your requirements.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Are you refreshing the page or navigating a page after clicking a submenu item?
Regards,
Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests