diff --git a/components/menu/__tests__/index.test.js b/components/menu/__tests__/index.test.js index f33029bbde..1076de172c 100644 --- a/components/menu/__tests__/index.test.js +++ b/components/menu/__tests__/index.test.js @@ -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', () => { diff --git a/components/menu/index.tsx b/components/menu/index.tsx index f52086f583..ca39243fc5 100644 --- a/components/menu/index.tsx +++ b/components/menu/index.tsx @@ -276,10 +276,6 @@ class InternalMenu extends React.Component { // submenu should hide without animation if (this.state.switchingModeFromInline) { menuOpenAnimation = ''; - this.setState({ - switchingModeFromInline: false, - }); - // this.switchingModeFromInline = false; } else { menuOpenAnimation = 'zoom-big'; }