场景:antd Popover内包裹了一个Button 点击了popover内的content,导致button有ant-click-animating-without-extra-node 不能点击;
原因:这个问题可能是由于 Popover 的 getPopupContainer 属性设置不正确导致的。默认情况下,Popover 的 getPopupContainer 属性是设置为 body 的,这可能会导致 Button 的点击事件无法正常触发;
解法:将visible属性改成用open控制开关Popover,适用于4.23.0,不过这时候的zindex会被提高超过蒙层的zindex,自行调整。