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

Menu in sider does not render if sider is default collapsed with collapsed width 0 and the menu is connected #13224

Closed
1 task done
joshuaavalon opened this issue Nov 21, 2018 · 4 comments

Comments

@joshuaavalon
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.10.8

Environment

Chrome 70.0.3538.102

Reproduction link

Edit on CodeSandbox

Steps to reproduce

See the example.

What is expected?

Both Test and Test2 is shown

What is actually happening?

Only Test is shown.


If you remove either defaultCollapsed or collapsedWidth={0}, then Test2 is shown, so I am pretty sure this is a bug.

@spideeee
Copy link

You can check how I implemented the same here: https://codesandbox.io/s/l27zo562mm and is working fine.

@joshuaavalon
Copy link
Author

I have a work around which connects at the item level. It also works. I wonder why it does not even render with connected menu.

@IssueHuntBot
Copy link

@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt

@olivermack
Copy link

I had the same issue right now and I did not see the difference in the fiddles directly. Anyway, I got it working by using the Layout.Sider as the connected component directly instead of just the Menu. Thus, I ended up with a connected sider which includes also the menu. No issues anymore.

@afc163 afc163 closed this as completed Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants