When clicking on a menu item to navigate to a new page, my expectation was that the new menu item would be highlighted. However, that was not the case.
Looking at the source code:
|
selected={link === '/' ? true : false} |
It appears that highlighting will only happen if the link attribute of the MenuItem is exactly /. Is the highlighting only meant for Home menu items?
When clicking on a menu item to navigate to a new page, my expectation was that the new menu item would be highlighted. However, that was not the case.
Looking at the source code:
react-mui-sidebar/src/components/MenuItem.tsx
Line 95 in 567a657
It appears that highlighting will only happen if the
linkattribute of the MenuItem is exactly/. Is the highlighting only meant for Home menu items?