Topic: Autohide sidebar when a link is clicked

osoverflow pro asked 5 years ago

Hi! I'm using the sidebar, and when I click a link into it I want the sidebar to close.   Current behavior is to stay open until I click outside the sidebar  

Damian Gemza staff answered 5 years ago

Dear Osoverflow, If you want to hide sidenav after clicking on some links, you have to add (click)="sidenav.hide()" method to every links. Best Regards, Damian

Please insert min. 20 characters.


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



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No