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

[bug]: When the sidebar is collapsed to icon view, the collapsible menu cannot expand or show subItems. #5874

Open
2 tasks done
WagamiAthha opened this issue Nov 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@WagamiAthha
Copy link

Describe the bug

When the sidebar is collapsed to icon view, the collapsible menu cannot expand or show subItems.

Affected component/components

Sidebar

How to reproduce

  1. Collapse the sidebar to icon size.
  2. Click the menu icon in the collapsed state.
  3. The CollapsibleContent does not appear.

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

React, Next.js, Tailwind, Typescript

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@WagamiAthha WagamiAthha added the bug Something isn't working label Nov 19, 2024
@loupengju
Copy link

same issue

@quocbao238
Copy link

In my issue, I use useSidebar() to handle this case
When click top Collapsible, I checked current state to toggle

  const { state, toggleSidebar } = useSidebar();

                => {
                  if (state === "collapsed") {
                    toggleSidebar();
                    return;
                  }
                }}

@stefnba
Copy link

stefnba commented Nov 24, 2024

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants