You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
I've got more than one menu I want to target with mobileMenu (just 2 in my case).
But only the first instance is executed correctly.
The second one doesn't get the select-element prepended in the DOM, but it's UL-element will be hidden (display:none).
If I change the order, the opposite happens.
I was using the latest version. But correct; that 'indentString' option is a copy-paste from some last year's code.
Nevertheless; the rest should be compatible with the latest version.
Also when I comment out the indentString-option it doesn't change anything....
Another 'symptom' I noticed: when I scale the browser back to a wider width, the first UL-menu doesn't become visible (still display:none). The dropdown gets hidden as it should.
I've got more than one menu I want to target with mobileMenu (just 2 in my case).
But only the first instance is executed correctly.
The second one doesn't get the select-element prepended in the DOM, but it's UL-element will be hidden (display:none).
If I change the order, the opposite happens.
Here's my code:
// mobile menu
$('#menu-main').mobileMenu({
topOptionText : DL.txt.selectPage,
prependTo : '.top_menu .menu',
indentString: ' ',
switchWidth : 768
});
$('#menu-left').mobileMenu({
topOptionText : DL.txt.selectPage,
prependTo : '.secondary',
indentString: ' ',
switchWidth : 479
});
The text was updated successfully, but these errors were encountered: