MDBReact Dropdown - Turn off Auto close


Topic: MDBReact Dropdown - Turn off Auto close

ebrooks asked 4 years ago

We are creating a sidebar navigation with MDBReact components, and want to keep the selected dropdown menu open when the user selects the toggle. Currently, when clicking anywhere else on the page, or the links in the dropdown, the menu is auto closing. Is there a way to stop that from happening?

https://mdbootstrap.com/snippets/react/ebrooks/2862068


Piotr Glejzer staff commented 4 years ago

I need a code example to help with that.


ebrooks commented 4 years ago

Edited with code snippet.


Piotr Glejzer staff commented 4 years ago

Ok, I understand. This is no possible to do that now. The basic behavior of dropdown is that what you said before.


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: 4.27.0
  • Device: Desktop
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: Yes