themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS
https://flowbite-react.com
MIT License
1.77k stars 395 forks source link

MegaMenu doesn't collapse/unfold on mobile #1409

Open jancbeck opened 1 month ago

jancbeck commented 1 month ago

Steps to reproduce

  1. Go to the mega menu default example.
  2. Resize the screen width to something that triggers the collapse (don't use the screen size icons on top the example)
  3. Tap on the Navbar toggle to unfold Navbar. Tap on the dropdown toggle ("Company").

Current behavior

The Navbar collapses again. The dropdown content is not visible.

Expected behavior

The Navbar should show the content of the dropdown below "Company".

Context

Tested in latest versions of Chrome and Safari on MacOS. Also applies to production code, not just examples which I only use for easier reproducibility. I generally don't find any example of the MegaMenu dropdown working in flowbite-react. The main library examples work as expected.

Related issue #1403 (dropdown seems to not be production-ready in Next.js)

SutuSebastian commented 1 month ago

CC @tulup-conner