MegaMenu doesn't collapse/unfold on mobile

未关闭
#1,409 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
react, tailwindcss, typescript
领域
frontend

调研方向

从 MegaMenu 默认示例开始,通过调整大小切换到折叠布局、打开 Navbar 并点击 Company 下拉菜单来复现问题。跟踪 React 组件中 Navbar 切换和下拉菜单的入口点,然后确认在移动设备上,下拉菜单内容仍显示在 Company 下方,同时不会折叠 Navbar。

由索引模型根据 Issue 内容生成。

描述

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

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)

主要语言
TypeScript
星标
2.2k
派生
504
平均合并
19 小时 16 分钟
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

themesberg/flowbite-react 的其他 Issue

查看 themesberg/flowbite-react 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。