collapsed menu will not working, when defaultOpenKeys not in all SubMenu keys #8475
Labels
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: