metismenu
metismenu copied to clipboard
Multi-level keep menu open
Hello,
With the current version only the first sub-level (
I think I'm seeing the same thing here.
For example, if I have a 3 tier menu, and I click on an item in the third tier, the third tier doesn't remain open when the next page loads. This causes me to have to click back through the menus to get to the option I selected.
Any help on this would be awesome! I tried to just copy the basic template laid out on the demo.
I'm having the same trouble.
Same here. Did anyone get a fix?
Same problem. Any ideas?
#5
See the above issue. It requires modifying the source code but will give you what you want.
try adding something like this in init function and make the child node active
$(this._element)
.find('li.' + this._config.activeClass)
.parents('ul')
.attr('aria-expanded', true)
.addClass(this._config.collapseClass + ' ' + this._config.collapseInClass);
$(this._element)
.find('li.' + this._config.activeClass)
.parents('li')
.attr('aria-expanded', true)
.addClass(this._config.activeClass);