themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.74k stars 727 forks source link

Unable to open mega menu from navbar on hover #702

Open iapparatus opened 11 months ago

iapparatus commented 11 months ago

While it is possible to assign data-dropdown-trigger="hover" to a button to trigger a simple dropdown inside the navbar it doesn't work for the mega menu item.

Expected to work:

<button id="mega-menu-full-dropdown-button" data-collapse-toggle="mega-menu-full-dropdown" data-dropdown-trigger="hover" class="flex items-center justify-between w-full py-2 pl-3 pr-4  text-gray-900 rounded md:w-auto hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-600 md:p-0 dark:text-white md:dark:hover:text-blue-500 dark:hover:bg-gray-700 dark:hover:text-blue-500 md:dark:hover:bg-transparent dark:border-gray-700" aria-expanded="false">Company <svg class="w-2.5 h-2.5 ml-2.5" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4"/>
 </svg></button>