Topic: Navigating from SideNav
gtb pro asked 6 years ago
Hi, not so much a question as an observation/minor bug.
I can get the example SideNav working in my application but, unlike the Navbar. I can't see a similar amount of documentation with a working example with the various components and actual working links.
If I dig through your source code I can see that SideNavItem has an href property that allows me to load up another component on the page. All good and that work's for me.
However, for consistency purpose have you considered treating a SideNavItem consistently with your NavItem - they both create <li> elements - and incorporating a new SideNavLink component with a "to" attribute that also acts as a wrapper around the react-router-dom.NavLink?
Thanks for your time.
Mikołaj Smoleński staff answered 6 years ago
Hi,
Thanks for Your remarks. We'll try to fix it in one of the next releases.
Regards
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Closed
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: MDB React
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags
sourabha22 pro commented 6 years ago
Sharing my observation with side nav Steps to reproduce: 1) Set up side nav component 2) Add an 'href' attribute to SideNavItem : Instruction 3) (refresh) Click on the menu option Behavior observed: On click of the menu option, the ripple effect causes screen to freeze for a small but noticeable fraction of time (though the new screen loads successfully)