From 4186ba641d513fa4b5df41b3231fbcd51f43682e Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 29 Sep 2017 12:26:05 +0800 Subject: [PATCH] Fix menu collapsed behavior --- src/layouts/BasicLayout.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index 094d684c..103c73bb 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -176,6 +176,11 @@ class BasicLayout extends React.PureComponent { const noticeData = this.getNoticeData(); + // Don't show popup menu when it is been collapsed + const menuProps = collapsed ? {} : { + openKeys: this.state.openKeys, + }; + return ( @@ -198,7 +203,7 @@ class BasicLayout extends React.PureComponent {