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