当导航菜单超过一定长度后面会隐藏起来,当鼠标移动到隐藏那部分,控制台就开始冒一堆警告提示了,例子是直接官方demo照搬过来的,不知道为什么会这样,下面是控制台警告提示
antd版本是3.20,升到3.25最新版本也是一样会冒一堆警告提示
Warning: setState(...): Cannot update during an existing state transition (such as within`render`or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to`componentWillMount`.
发现是他们自己的bug