react-minimal-side-navigation icon indicating copy to clipboard operation
react-minimal-side-navigation copied to clipboard

Parent Menu issue

Open baratdev opened this issue 4 years ago • 3 comments

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.

baratdev avatar Aug 18 '21 06:08 baratdev

Will look into this

abhijithvijayan avatar Aug 18 '21 13:08 abhijithvijayan

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 }} />

sandeepjadhav avatar Jan 14 '22 09:01 sandeepjadhav

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

mdasiff avatar Aug 19 '22 06:08 mdasiff