Merge pull request #15997 from ant-design/recover-openAnimation

chore: menu openAnimation use object
This commit is contained in:
偏右 2019-04-11 12:11:51 +08:00 committed by GitHub
commit 18d99fb937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,7 @@ class InternalMenu extends React.Component<InternalMenuProps, MenuState> {
menuProps.onClick = this.handleClick;
menuProps.openTransitionName = mounted ? menuOpenAnimation : '';
} else {
menuProps.openAnimation = mounted && menuOpenAnimation;
menuProps.openAnimation = mounted ? menuOpenAnimation : {};
}
// https://github.com/ant-design/ant-design/issues/8587