- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
https://ant.design/components/dropdown-cn/
Steps to reproduce
代码演示的第一个从Hover me菜单hover后稍快移动到菜单,菜单则消失
The first code demonstration
Moves from the Hoverme button, menu disappears quickly after hover
What is expected?
菜单不消失
The menu does not disappear
What is actually happening?
菜单消失
the menu disappears
Environment | Info |
---|---|
antd | 4.13.0 |
React | React:v17.0.1 |
System | window10 |
Browser | 谷歌v 88.0.4324.190 |
2条答案
按热度按时间ddrv8njm1#
嗯,动画过程中下拉菜单是
pointer-event: none
的。这是为了解决元素过早交互的问题。看起来需要换种方式实现。50few1ms2#
从antd 4.13.0开始,X6库的menu组件,class多了slide相关的,style多了一个pointer-event: none,导致menu item无法点击。
是不是改了这块逻辑?