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

test: recover openAnimation
This commit is contained in:
偏右 2019-04-10 17:15:23 +08:00 committed by GitHub
commit c9b7fecb7d
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