MegaMenu doesn't collapse/unfold on mobile

Đang mở
#1,409 2 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, tailwindcss, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với ví dụ mặc định của MegaMenu và tái hiện vấn đề bằng cách thay đổi kích thước sang bố cục thu gọn, mở Navbar và nhấn vào dropdown Company. Truy vết các điểm vào của toggle Navbar và dropdown trong các component React, sau đó xác minh rằng nội dung dropdown vẫn hiển thị bên dưới Company trên thiết bị di động mà không thu gọn Navbar.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • 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)

Ngôn ngữ chính
TypeScript
Star
2.1k
Fork
502
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của themesberg/flowbite-react

Tất cả issue của themesberg/flowbite-react

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.