You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @Yawenina, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!
Reproduction link
Steps to reproduce
hover 到 “有Before” 菜单时,没有 tooltip 提示;
hover 到 “没有Before” 菜单时,有 tooltip 提示;
What is expected?
不需要单独配置 css 样式,让 tooltip 生效
What is actually happening?
antd 内部,会给
![image](https://private-user-images.githubusercontent.com/13173126/330650507-6315594c-a35a-4836-9948-61ea258063a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1ODkxMTgsIm5iZiI6MTcyMTU4ODgxOCwicGF0aCI6Ii8xMzE3MzEyNi8zMzA2NTA1MDctNjMxNTU5NGMtYTM1YS00ODM2LTk5NDgtNjFlYTI1ODA2M2E2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDE5MDY1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM4ZmU1NzVhMThiMGEyYjBmMjdhYzYwZWIzMjAxMDI3YTIyMGE2YjMxN2JlOWFhOGI1ODE3ZWU2ZGY1MWU3ZjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.y3KmKloIEEGBOv3P1YBkirmGhfwG3TCQi80Bp3W9AEQ)
menu-item a
加上::before
的样式的蒙层,导致hover
时,无法选中 tooltip 中的 trigger, 就不会触发 tooltip 提示。当去掉这个
::before
样式,则 tooltip 生效====== 题外话
不知道加这个样式的出发点是什么,但是在结合 ProLayout 一起使用的时候,如果通过在项目中加 css 来解决这个问题,
在 ProLayout 中又会出现:点击一个链接,打开 2个窗口的问题,这个是 demo
这个原因是 ProLayout 内部会给 http 的链接绑定跳转事件(ProLayout 代码),当在这个外层包一个
a
标签时,由于 antd menu 的样式,不会有打开 2 个窗口的问题。但是为了解决 tooltip 的问题,一旦把a::before
的样式去掉,则会打开 2 个窗口。The text was updated successfully, but these errors were encountered: