Skip to content

Cannot change selected menu item #12

@baohouse

Description

@baohouse

When clicking on a menu item to navigate to a new page, my expectation was that the new menu item would be highlighted. However, that was not the case.

Looking at the source code:

selected={link === '/' ? true : false}

It appears that highlighting will only happen if the link attribute of the MenuItem is exactly /. Is the highlighting only meant for Home menu items?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions