Don't open menu when sidebar is collapsed
This commit is contained in:
parent
4498011654
commit
9ee6514723
|
@ -137,7 +137,7 @@ const SideBar = ({
|
|||
<PerfectScrollbar options={{ suppressScrollX: true }}>
|
||||
<Menu
|
||||
defaultSelectedKeys={[matchedPath.url]}
|
||||
defaultOpenKeys={[`/${matchedPath.params.category}`]}
|
||||
defaultOpenKeys={ui.sidebarCollapsed ? [] : [`/${matchedPath.params.category}`]}
|
||||
mode="inline"
|
||||
style={{ height: '100%' }}
|
||||
key={matchedPath.url}
|
||||
|
|
Loading…
Reference in New Issue