Fix inlineCollpasd and openKeys issue

This commit is contained in:
afc163 2017-09-06 14:14:34 +08:00
parent 786f5cd7e0
commit e9a592a9c8

View File

@ -137,7 +137,7 @@ export default class Menu extends React.Component<MenuProps, any> {
} }
getRealMenuMode() { getRealMenuMode() {
const inlineCollapsed = this.getInlineCollapsed(); const inlineCollapsed = this.getInlineCollapsed();
if (this.switchModeFromInline && inlineCollapsed && !('openKeys' in this.props)) { if (this.switchModeFromInline && inlineCollapsed) {
return 'inline'; return 'inline';
} }
const { mode } = this.props; const { mode } = this.props;