Skip to content

Commit

Permalink
fix sidebar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed Jun 16, 2021
1 parent 74a1642 commit b8db837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spug_web/src/layout/Sider.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Sider(props) {
const openKey = OpenKeysMap[tmp];
if (openKey) {
selectedKey = tmp;
if (openKey !== 1 && !openKeys.includes(openKey)) {
if (openKey !== 1 && !props.collapsed && !openKeys.includes(openKey)) {
setOpenKeys([...openKeys, openKey])
}
}
Expand Down

0 comments on commit b8db837

Please sign in to comment.