Topic: Closing Sidenav when click on link
Nicholas Papetti pro premium priority asked 5 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 5 years ago
Tomek Makowski staff answered 5 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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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