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

Support multiple Navs without explicit IDs #7

Open
chrisvxd opened this issue Oct 4, 2019 · 0 comments
Open

Support multiple Navs without explicit IDs #7

chrisvxd opened this issue Oct 4, 2019 · 0 comments
Labels
feature New feature or request

Comments

@chrisvxd
Copy link
Contributor

chrisvxd commented Oct 4, 2019

We use portals, and set a div with ID nav-root. If you're using more than 1 nav on the page, you'll need to have two different IDs. You are able to explicitly set the nav-root by adding the navRootId prop:

<Nav navRootId="my-id" />

However:

  1. This is undocumented
  2. This should happen automatically, if possible. It's also important for us to support SSR, and make sure the ID persists between server and client.
@chrisvxd chrisvxd added the feature New feature or request label Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant