mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-11 10:05:07 +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() {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user