recover openAnimation

This commit is contained in:
jljsj33 2019-04-10 16:32:17 +08:00
parent c8a58396c5
commit 1bc8ec5e0f

View File

@ -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