diff --git a/components/menu/index.tsx b/components/menu/index.tsx index d6430d36de..80694a4417 100644 --- a/components/menu/index.tsx +++ b/components/menu/index.tsx @@ -305,7 +305,7 @@ class InternalMenu extends React.Component { 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