Browse Source

Fix inlineCollpasd and openKeys issue

pull/7487/head
afc163 7 years ago
parent
commit
e9a592a9c8
  1. 2
      components/menu/index.tsx

2
components/menu/index.tsx

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

Loading…
Cancel
Save