mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
parent
bed07392fd
commit
67e027a41c
@ -569,7 +569,6 @@ describe('Menu', () => {
|
||||
.instance()
|
||||
.getMenuOpenAnimation(''),
|
||||
).toBe('');
|
||||
expect(wrapper.find('InternalMenu').state().switchingModeFromInline).toBe(false);
|
||||
});
|
||||
|
||||
it('MenuItem should not render Tooltip when inlineCollapsed is false', () => {
|
||||
|
@ -276,10 +276,6 @@ class InternalMenu extends React.Component<InternalMenuProps, MenuState> {
|
||||
// submenu should hide without animation
|
||||
if (this.state.switchingModeFromInline) {
|
||||
menuOpenAnimation = '';
|
||||
this.setState({
|
||||
switchingModeFromInline: false,
|
||||
});
|
||||
// this.switchingModeFromInline = false;
|
||||
} else {
|
||||
menuOpenAnimation = 'zoom-big';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user