mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +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 = {
|
this.state = {
|
||||||
openKeys,
|
openKeys: openKeys || [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
|
Loading…
Reference in New Issue
Block a user