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

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

Open
angusmoncrieff opened this issue Feb 12, 2021 · 0 comments
Open

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

angusmoncrieff opened this issue Feb 12, 2021 · 0 comments

Comments

@angusmoncrieff
Copy link

angusmoncrieff commented Feb 12, 2021

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.

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