From 1ed890c095e393d4ed3cfdb5b364b8d201d3673c Mon Sep 17 00:00:00 2001 From: kacjay <45483388@qq.com> Date: Mon, 23 Jan 2017 13:55:39 +0800 Subject: [PATCH] fix Menu selected change error (#4677) protect none parameter[openKeys, defaultOpenKeys] Menu --- 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 4c8eb3eda1..2764642706 100644 --- a/components/menu/index.tsx +++ b/components/menu/index.tsx @@ -79,7 +79,7 @@ export default class Menu extends React.Component { } this.state = { - openKeys, + openKeys: openKeys || [], }; } componentWillReceiveProps(nextProps) {