flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Mega Menu doesn't close when clicking anywhere on the page

Open pekka opened this issue 1 year ago • 2 comments

Describe the bug The expected behaviour for a Mega Menu-style navigation menu is that if I click anywhere else on the page, the menu closes.

To Reproduce Open a Mega Menu, try to close it by clicking anywhere on the screen

Expected behavior The Mega Menu should close

I'd appreciate a hint on how to work around this using JS...

pekka avatar May 18 '23 17:05 pekka

Could i work on it

borhansahed avatar Jun 19 '23 04:06 borhansahed

This has been sorted and can be closed! The solution is to use data-dropdown-toggle=elementname instead of data-collapse-toggle like it is shown in the documentation.

pekka avatar Jun 19 '23 07:06 pekka