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

The opened < ul> element not collapse on click the <li> which do not have child <ul>.and also want to add active class to the <li> to those which do not have child<ul> #180

Open
reason706 opened this issue Apr 27, 2019 · 0 comments

Comments

@reason706
Copy link

Actually what i want is to collapse the opened submenu while clicking the <li> element which do not have sub menu like the first one in the below example . and also want to add active to this <li> .


<ul id="metismenu"> 
// this li tag don't have submenu 

    <li>
         <a class="" href="#" aria-expanded="true">Menu 1</a>
        </li>

        <li class="">
         <a class="has-arrow" href="#" aria-expanded="true">Menu 1</a>
         <ul>
         ...
         </ul>
        </li>
        <li>
         <a class="has-arrow" href="#" aria-expanded="false">Menu 2</a>
        <ul>
         ...
         </ul>
        </li>
        ...
 </ul>
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

1 participant