fix Menu selected change error (#4677)

protect none parameter[openKeys, defaultOpenKeys] Menu
This commit is contained in:
kacjay 2017-01-23 13:55:39 +08:00 committed by 偏右
parent bde7d1c624
commit 1ed890c095

View File

@ -79,7 +79,7 @@ export default class Menu extends React.Component<MenuProps, any> {
} }
this.state = { this.state = {
openKeys, openKeys: openKeys || [],
}; };
} }
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {