mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +08:00
menu openAnimation use object
This commit is contained in:
parent
1bc8ec5e0f
commit
278fcfdf41
@ -305,7 +305,7 @@ class InternalMenu extends React.Component<InternalMenuProps, MenuState> {
|
|||||||
menuProps.onClick = this.handleClick;
|
menuProps.onClick = this.handleClick;
|
||||||
menuProps.openTransitionName = mounted ? menuOpenAnimation : '';
|
menuProps.openTransitionName = mounted ? menuOpenAnimation : '';
|
||||||
} else {
|
} else {
|
||||||
menuProps.openAnimation = mounted && menuOpenAnimation;
|
menuProps.openAnimation = mounted ? menuOpenAnimation : {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/ant-design/ant-design/issues/8587
|
// https://github.com/ant-design/ant-design/issues/8587
|
||||||
|
Loading…
Reference in New Issue
Block a user