react-sidenav icon indicating copy to clipboard operation
react-sidenav copied to clipboard

Programmatically set the selected NavItem

Open GiambaFr opened this issue 5 years ago • 2 comments

Can you provide a function to set the selected NavItem from Nav or SideNav's element to set "active" the right one, even if the user either enters the pathname himself or does history.back()?

Two NavItem can be active when doing:

GiambaFr avatar Jun 26 '20 16:06 GiambaFr

Were you able to find a solution to this @GiambaFr ?

Liam-OShea avatar Apr 29 '21 19:04 Liam-OShea

No, I've played with it a few hours to finaly figure out it was not the lib I was looking for. It was not open enough for the uses I needed to complete my project. So I moved to React.Router and I build it myself.

GiambaFr avatar Apr 29 '21 21:04 GiambaFr