mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
parent
f1110f2bc5
commit
1a93536a26
@ -100,7 +100,7 @@ export default class Menu extends React.Component<MenuProps, any> {
|
||||
}
|
||||
if ((nextProps.inlineCollapsed && !this.props.inlineCollapsed) ||
|
||||
(nextContext.siderCollapsed && !this.context.siderCollapsed)) {
|
||||
this.switchModeFromInline = true;
|
||||
this.switchModeFromInline = !!this.state.openKeys.length;
|
||||
this.inlineOpenKeys = this.state.openKeys;
|
||||
this.setOpenKeys([]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user