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

Parent Menu issue #19

Open
baratdev opened this issue Aug 18, 2021 · 3 comments
Open

Parent Menu issue #19

baratdev opened this issue Aug 18, 2021 · 3 comments

Comments

@baratdev
Copy link

baratdev commented Aug 18, 2021

What if i don't want to put a link on parent menu if i remove itemId key from it console shows me warning of unique key, kindly please suggest how to remove link from Parent menu only submenu have link.There should be two different key for link and for key , so if someone dont want to add link on parent menu so he can simply remove it and key value in "key" so that he cannot get warning of unique key issue.

@abhijithvijayan
Copy link
Owner

Will look into this

@sandeepjadhav
Copy link

sandeepjadhav commented Jan 14, 2022

I used trick here to solve parent key link issue:

  1. just pass null value to the parents itemId: ''
  2. And in <Navigation onSelect={({itemId}) => { // maybe push to the route only if item id is not null }} />

@mdasiff
Copy link

mdasiff commented Aug 19, 2022

is there a way to add my own class to parent and child menu?

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

4 participants