Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Nav-item stays selected when page loads #718

Unanswered
Adamhumbug asked this question in Q&A
Discussion options

Hi All,

I have created a nav group with links. When i click one of the nav-items that loads its relevent page, the nav group collapses as intended but the arrow stays pointing up meaning that to open the nav group again i need to click the item twice. The first time makes the arrow face down and the second time expands the nav group.

This is the section causing me trouble.

    <li class="nav-title">
        Entities
    </li>

    <li class="nav-group"><a class="nav-link nav-group-toggle" href="#">
            <svg class="nav-icon">
                <use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-notes"></use>
            </svg> People</a>
        <ul class="nav-group-items" style="height: 0px;">
            <li class="nav-item"><a class="nav-link" href="people-listing"> People Listing</a></li>
            <li class="nav-item"><a class="nav-link" href="new-person"> New Person</a></li>
        </ul>
    </li>

    <li class="nav-group"><a class="nav-link nav-group-toggle" href="#">
            <svg class="nav-icon">
                <use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-notes"></use>
            </svg> Organisations</a>
        <ul class="nav-group-items" style="height: 0px;">
            <li class="nav-item"><a class="nav-link" href="organisation-listing"> Organisation Listing</a></li>
            <li class="nav-item"><a class="nav-link" href="new-organisation"> New Organisation</a></li>
        </ul>
    </li>

I have attached an image of the navbar after clicking on of the links in the People section

You must be logged in to vote

Replies: 1 comment

Comment options

Screenshot 2024-02-19 at 10 51 36

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.