how to disable the closing of the sidenav on click on the bo


Topic: how to disable the closing of the sidenav on click on the body?

Akizuki230 asked 4 years ago

hello how to disable the closing of the sidenav on click on the body? , I am using MDB5 react, I need the menu to be always open. I copy and paste the example code, but a backdrop is always created and the sidenav closes when clicking elsewhere

help me please


Krzysztof Wilk staff answered 4 years ago

Hi!

Check an API Tab in Sidenav documentation (https://mdbootstrap.com/docs/b5/react/navigation/sidenav/). You have to use constant prop along with backdrop={false} and isOpen properties as well :)

Keep coding!


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 React
  • MDB Version: 5.0.1
  • Device: Laptop
  • Browser: Firefox
  • OS: Manjaro
  • Provided sample code: No
  • Provided link: No
Tags