Skip to content

Option to render menu with display:none when closed? #27

@angusmoncrieff

Description

@angusmoncrieff

Hello and thank you for this library!

I have built a menu with submenus using react-menu-list which contains links to other places on my web app. I would like these links to be visible to google crawlers, but at present the menu doesn't exist in the DOM until it's clicked.

Could there be an option so that menu and submenus are always rendered to the DOM, albeit with display:none when the menu is closed? (I.e. same as how reactstrap renders dropdowns.)

(FYI my submenus are only one level: i.e. the parent menu has multiple submenus, but no submenu has submenus.)

Perhaps I could have a go at this myself, but I'd greatly appreciate any insight you might have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions