How to allow non-link interior clicks in revealed mega menu


Topic: How to allow non-link interior clicks in revealed mega menu without menu dismissal

paulwilsonbrown pro asked 6 years ago

I am trying to setup a Mega Menu which will only close itself when a link within it is clicked or the exterior is clicked.  Currently any click within the menu dismisses it.  I tried using autoClose="false" without any luck.

Arkadiusz Idzikowski staff answered 6 years ago

Dear paulwilsonbrown, When you add [autoClose]="false" to all li tags with mdbDropdown directive it should work. Unfortunately it also prevents closing menu on external click. We will take a closer look at this problem. I think the only workaround for now is to use autoClose input and to call hide() method on dropdowns when click was detected outside megamenu. Regards, Arek
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: No
  • Technology: MDB Angular
  • MDB Version: 6.2.3
  • Device: MacBook Pro
  • Browser: Chrome 70.0.3538.77
  • OS: MacOS Mojave
  • Provided sample code: No
  • Provided link: No