Skip to content

Commit

Permalink
menu openAnimation use object
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Apr 10, 2019
1 parent 1bc8ec5 commit 278fcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 278fcfd

Please sign in to comment.