-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cascader组件在设置expandTrigger为hover时,如果悬停到没有下级菜单的一个一级菜单上,不会隐藏之前显示的其它一级菜单的二级菜单 #41134
Comments
让我来看看该应该怎么修复 |
已经在 |
多谢。麻烦问下修复会合并到4.x版本中吗? |
更新:4.x 版本在 |
多谢,辛苦了。 |
目前看,antd4.x 仍未修复该问题 @Wxh16144 |
@kashtian 需要重新安装 antd, 注意检查 lock 文件. 如果还存在问题可以帮助我们提供一个复现仓库, 感谢~ |
@kashtian 清了 lock 文件重新安装即可。需要底层依赖更新到 rc-cascader@3.7.2 。 |
感谢,已发现问题,引用的 antd cdn 包,rc-cascader 不是 3.7.2 的版本 |
感谢,已发现问题,确实是 rc-cascader 版本不对 |
@Wxh16144 我发现 antd 官方提供的 cdn 包也有问题,https://cdnjs.cloudflare.com/ajax/libs/antd/4.24.8/antd-with-locales.js |
@kashtian 试试 4.24.9 |
4.24.9 可以的,多谢 |
Reproduction link
Steps to reproduce
What is expected?
在设置expandTrigger为hover时,如果悬停到没有下级菜单的一个一级菜单上,会隐藏之前显示的其它一级菜单的二级菜单
What is actually happening?
在设置expandTrigger为hover时,如果悬停到没有下级菜单的一个一级菜单上,不会隐藏之前显示的其它一级菜单的二级菜单
具体应该是https://github.com/react-component/cascader/blob/e7b6d156f6f3e303d4f7e1a81575a9abbb3be382/src/OptionList/Column.tsx中的
方法中,对于leaf节点,限制了!hoverOpen时才生效。
The text was updated successfully, but these errors were encountered: