flowbite
flowbite copied to clipboard
Mega menu examples should have `data-dropdown-toggle` rather than `data-collapse-toggle`
The examples on the Mega Menu page use the data-collapse-toggle
attribute which doesn't support closing the menu by clicking anywhere on the page.
From where I'm standing, the examples should be updated to using data-dropdown-toggle
100% - I just tried this and it is much better. Also using data-collapse-toggle with two dropdown menus side by side does not toggle of visibility of the other, resulting in the hidden element IDs stacking.
data-collapse-toggle is the way.
Yeah this confused me as the Collapse component doesn't seem to be documented anywhere and I'm not sure I understand the difference 🤔