Warning in console when click sidenav


Topic: Warning in console when click sidenav

CartoonNetwork159 pro asked 6 years ago

I've exported Sidenav component (by button) to Navbar then when I've clicked on Sidenav button, console will show warning like this Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>. I think this problem cause of SideNavCat and this warning not effect to my app but when want to eliminate it. Thanks.

Jakub Mandra staff premium answered 6 years ago

I Assume that You nested SideNav's open button within NavLink? Try to use NavItem as SideNav's open button.   Regards, Jakub

CartoonNetwork159 pro commented 6 years ago

I nested SideNav's open button within NarbarBrand. then I deleted NavbarBrand and this issue is solved. Thanks Jakub.

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.7.1
  • Device: MAC Pro
  • Browser: Google Chrome
  • OS: MACOS
  • Provided sample code: No
  • Provided link: No