Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full-width Megamenu (collapsible) does not close when clicking outside #992

Open
jbwl opened this issue Nov 6, 2024 · 1 comment
Open

Comments

@jbwl
Copy link

jbwl commented Nov 6, 2024

Describe the bug
The mega menu does not close when a user clicks outside of it, but only when the triggering element, e.g. a button is clicked again.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Flowbite Docs for the full-width mega menu: https://flowbite.com/docs/components/mega-menu/#full-width-dropdown
  2. Click on "Company" menu item - the mega menu opens
  3. Click on anywhere where there is a an empty space outside the mega menu, e.g. to the left of "Home"

Expected behavior
The mega menu should close because it's the expected behavior.
Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome (130), Safari (18.1), probably others

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
All other mega menu examples (non-full-width) do close as expected when clicking outside of them.

@ENate
Copy link

ENate commented Dec 24, 2024

Hi @jbwl Any progress on this issue? I also came across similar issue when using this mega-full-menu in an Angular application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants