flowbite
flowbite copied to clipboard
Mega Menu doesn't close when clicking anywhere on the page
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...
Could i work on it
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.