Closing Sidenav when click on link


Topic: Closing Sidenav when click on link

Nicholas Papetti pro premium priority asked 4 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.)


Nicholas Papetti pro premium priority answered 4 years ago

there is no solution?


Tomek Makowski staff answered 4 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: Pro
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No