From 278fcfdf41880fe066641647ca9e1ff88a9b4841 Mon Sep 17 00:00:00 2001 From: jljsj33 Date: Wed, 10 Apr 2019 17:17:53 +0800 Subject: [PATCH] menu openAnimation use object --- components/menu/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/menu/index.tsx b/components/menu/index.tsx index d6430d36de41..80694a441798 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