Closing Sidenav when click on link


Topic: Closing Sidenav when click on link

Nicholas Papetti asked 2 years ago

Expected behavior When clicking on a link of sidenav, sidenav auto-hide

Actual behavior When clicking on a link of sidenav, it stays where it is

Resources (screenshots, code snippets etc.)


there is no solution?


Tomek Makowski staff answered 2 years ago

Hi

To make your side nav auto hide after clicking on link just add closeOnClick: true property to initialization of nav.

https://mdbootstrap.com/snippets/jquery/tomasz-makowski/2192520#

Regards


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No