Menu defaultOpenKeys & defaultSelectedKeys not working with multiple children
See original GitHub issueSorry, only speak English.
When using the Menu
component, with the mode ‘inline’, the defaultOpenKeys
doesn’t work.
The example, http://ant.design/components/menu/#demo-sider, doesn’t work when doing it locally, even when exactly copying the example.
Cheers
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
on change of defaultOpenKeys values does not rer-ender ...
I've just tried with openKeys and and handle onOpenChange to set new openkeys into submenu state it's fine:
Read more >Menu - Ant Design
Ant Design offers two navigation options: top and side. ... Menu needs to collect its node structure, so its children should be Menu.*...
Read more >Menu.Item - Ant Design
An enterprise-class UI design language and React-based implementation with a set of high-quality React components, one of best React UI library for ...
Read more >ReactJS UI Ant Design Menu Component
ReactJS UI Ant Design Menu Component ; defaultOpenKeys: It is used to denote the array with the keys of the default opened sub-menus....
Read more >Menu - Ant Design
Side navigation provides the Multi-level structure of the website. More layouts with navigation: layout. Examples. Navigation One; Navigation Two.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
补充一下,用 react-css-modules 处理过的也不行,比如
给后来的提个醒…
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.