flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Mega menu examples should have `data-dropdown-toggle` rather than `data-collapse-toggle`

Open pekka opened this issue 1 year ago • 2 comments

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

pekka avatar Jun 18 '23 08:06 pekka

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.

chadalderson avatar Mar 10 '24 17:03 chadalderson

Yeah this confused me as the Collapse component doesn't seem to be documented anywhere and I'm not sure I understand the difference 🤔

MangoMarcus avatar Jun 27 '24 16:06 MangoMarcus