Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Re: Manually setting submenu left/right direction

Home Forums Older releases 0.9.x Manually setting submenu left/right direction Re: Manually setting submenu left/right direction

#1597
CCharabaruk
Participant

I figured out what I needed to do; without a guard to skip the whole operation on lower-level submenus I’d end up in a deadly cycle. The solution was to add this as the first line of the event handler:

if ($(menu).parentsUntil('#main-menu').length != 1) return;

Now it works just fine.