-
-
Notifications
You must be signed in to change notification settings - Fork 50k
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
collapsed menu will not working, when defaultOpenKeys not in all SubMenu keys #8475
Comments
I don't understand, your codepen don't make any sense, Ant there is no |
define allSubMenuKeys, just want to said the all SubMenu of Menu, and it's not a property of Menu. <Menu
defaultOpenKeys={['sub10']}
>
<SubMenu key="sub1">...</SubMenu>
<SubMenu key="sub2">...</SubMenu>
</Menu> |
Is this a bug report or a feature request? |
@afc163 |
@Hughen Could u provide a reproducible steps of your gif? |
@afc163 <Menu
mode="inline"
theme="dark"
>
<SubMenu
title="Main Menu"
key="main"
>
<Menu.Item key="s1">
<a href="#">Sub 1</a>
</Menu.Item>
<Menu.Item key="s2">
<a href="#">Sub 2</a>
</Menu.Item>
</SubMenu>
</Menu> |
Version
2.13.11
Environment
All browsers
Reproduction link
https://codepen.io/Hughen/pen/LOvKWL
Steps to reproduce
What is expected?
every submenu will be expanded, the point hover on it.
What is actually happening?
the menu defaultOpenKeys can not find anything from Menu.SubMenu keys, any submenu is not appeared when sider bar has been collapsed
The text was updated successfully, but these errors were encountered: