This commit is contained in:
jiang 2017-08-01 17:41:03 +08:00 committed by 偏右
parent f1110f2bc5
commit 1a93536a26

View File

@ -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([]);
}