themesberg / themesberg/flowbite-react
MegaMenu doesn't collapse/unfold on mobile
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
- I have searched the Issues to see if this bug has already been reported
- I have tested the latest version
Steps to reproduce
- Go to the mega menu default example.
- Resize the screen width to something that triggers the collapse (don't use the screen size icons on top the example)
- 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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the MegaMenu default example and reproduce the issue by resizing to the collapsed layout, opening the Navbar, and tapping the Company dropdown. Trace the Navbar toggle and dropdown entry points in the React components, then verify that the dropdown content remains visible below Company on mobile without collapsing the Navbar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, tailwindcss, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100