mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
Merge pull request #15997 from ant-design/recover-openAnimation
chore: menu openAnimation use object
This commit is contained in:
commit
18d99fb937
@ -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