mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
Fix inlineCollpasd and openKeys issue
This commit is contained in:
parent
786f5cd7e0
commit
e9a592a9c8
@ -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…
Reference in New Issue
Block a user