mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
fix Menu selected change error (#4677)
protect none parameter[openKeys, defaultOpenKeys] Menu
This commit is contained in:
parent
bde7d1c624
commit
1ed890c095
@ -79,7 +79,7 @@ export default class Menu extends React.Component<MenuProps, any> {
|
||||
}
|
||||
|
||||
this.state = {
|
||||
openKeys,
|
||||
openKeys: openKeys || [],
|
||||
};
|
||||
}
|
||||
componentWillReceiveProps(nextProps) {
|
||||
|
Loading…
Reference in New Issue
Block a user