From e9a592a9c85d45ccd1d18417c99bc500ca7e56da Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 6 Sep 2017 14:14:34 +0800 Subject: [PATCH] Fix inlineCollpasd and openKeys issue --- components/menu/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;