diff --git a/components/menu/index.tsx b/components/menu/index.tsx index 629aa3ee5a..32b9df4ab8 100644 --- a/components/menu/index.tsx +++ b/components/menu/index.tsx @@ -137,7 +137,7 @@ export default class Menu extends React.Component { } getRealMenuMode() { const inlineCollapsed = this.getInlineCollapsed(); - if (this.switchModeFromInline && inlineCollapsed && !('openKeys' in this.props)) { + if (this.switchModeFromInline && inlineCollapsed) { return 'inline'; } const { mode } = this.props;