Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-level keep menu open #41

Open
hacha82 opened this issue Mar 13, 2015 · 6 comments
Open

Multi-level keep menu open #41

hacha82 opened this issue Mar 13, 2015 · 6 comments

Comments

@hacha82
Copy link

hacha82 commented Mar 13, 2015

Hello,

With the current version only the first sub-level (

    ) keeps open when the page reload.

    I need the menu to keep the same behavior for the next sub-level (

      ). The class is set to active for the .

      Is this possible by modifying the js ?

@hacha82 hacha82 changed the title Multi-level keep open menu Multi-level keep menu open Mar 13, 2015
@ghost
Copy link

ghost commented Jun 15, 2015

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.

@simmogs
Copy link

simmogs commented Jul 14, 2015

I'm having the same trouble.

@ghiotion
Copy link

Same here. Did anyone get a fix?

@mpkhoury
Copy link

Same problem. Any ideas?

@LorenDorez
Copy link

#5

See the above issue. It requires modifying the source code but will give you what you want.

@muratsu
Copy link

muratsu commented Dec 13, 2016

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants