ant-design / ant-design/pro-components

🐛[BUG] ProLayout Bug, 当显示的菜单不是浮现的Tips二级菜单的时候,展开收起该二级菜单,原本隐藏的Tips二级菜单又显示出来了

Open
#7,607 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

🐛[BUG] ProLayout Bug, 当显示的菜单不是浮现的Tips二级菜单的时候,展开收起该二级菜单,原本隐藏的Tips二级菜单又显示出来了

https://github.com/ant-design/pro-components/assets/29336835/95a67e69-1a50-4fb9-a619-1186368727b7

重现步骤:

打开官网demo
https://procomponents.ant.design/~demos/packages-layout-src-components-layout-tab-api-demo-sidermode
![image](https://github.com/ant-design/pro-components/assets/29336835/20fb09f3-3b7e-44da-a198-a4417863d352)

选择欢迎菜单, 目前显示的欢迎菜单
![image](https://github.com/ant-design/pro-components/assets/29336835/6b99ef18-fd84-4665-be25-ae9916015ea0)

收起侧边栏,显示Tips菜单
![image](https://github.com/ant-design/pro-components/assets/29336835/bc24cdbb-2be0-4e47-9570-f22912a08753)
展开收起该二级菜单,原本隐藏的Tips二级菜单又显示出来了
![image](https://github.com/ant-design/pro-components/assets/29336835/9f2b6a28-0143-48b2-81f4-9a5e61da769b)

Contributor guide

Open the contributing guide

Research direction

Start with the ProLayout sider-mode demo linked in the issue and reproduce the behavior using the Welcome menu, a collapsed sidebar, and the Tips submenu. Trace the ProLayout menu entry point responsible for expanding and collapsing secondary menus; done means the previously hidden Tips submenu stays hidden after toggling the displayed submenu.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.