Skip to content
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

菜单收缩时,出现tooltip #41081

Closed
1zilc opened this issue Mar 6, 2023 · 17 comments · Fixed by react-component/trigger#335
Closed

菜单收缩时,出现tooltip #41081

1zilc opened this issue Mar 6, 2023 · 17 comments · Fixed by react-component/trigger#335
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@1zilc
Copy link

1zilc commented Mar 6, 2023

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 选中任意子菜单
  2. 点击收缩菜单按钮

What is expected?

  1. 菜单收起后,无tooltip

What is actually happening?

  1. 菜单收起后,出现部分子菜单tooltip

截图

image

Environment Info
antd 5.3.0
React 18
System macos13
Browser chrome110
@MuxinFeng
Copy link
Contributor

应该不是预期行为吧,我试试提个 pr~

@UmitKidly
Copy link

I have the same problem..

@afc163
Copy link
Member

afc163 commented Mar 7, 2023

确实有问题。

@afc163 afc163 added 🐛 Bug Ant Design Team had proved that this is a bug. and removed unconfirmed labels Mar 7, 2023
@MuxinFeng
Copy link
Contributor

确实有问题。

感觉是 tooltip 版本升级带来的影响

@TKBnice
Copy link

TKBnice commented Mar 9, 2023

第一次使用ant-design,也遇见了相同问题。

@pchaganti
Copy link

+1

@pchaganti
Copy link

This bug can also be seen in the sample code on the Ant Design samples page - https://ant.design/components/layout

@bao-io
Copy link

bao-io commented Mar 11, 2023

+1+1

@Brucia323
Copy link
Contributor

+1,还有图标偏移的问题
image

@zombieJ
Copy link
Member

zombieJ commented Mar 13, 2023

fixed with @rc-component/trigger:
https://codesandbox.io/s/suo-qi-nei-qian-cai-dan-antd-undefined-forked-70zmpl

@bamtheboozle
Copy link

fixed with @rc-component/trigger: codesandbox.io/s/suo-qi-nei-qian-cai-dan-antd-undefined-forked-70zmpl

how exactly do we use this fix?

@Brucia323
Copy link
Contributor

fixed with @rc-component/trigger: codesandbox.io/s/suo-qi-nei-qian-cai-dan-antd-undefined-forked-70zmpl

how exactly do we use this fix?

only update antd to 5.3.1

@youssefbrr
Copy link

I'm using antd version 5.3.1 but I still have the same problem

@yoyo837
Copy link
Contributor

yoyo837 commented Mar 16, 2023

Try remove node_modules and lock file then reinstall it.

@ty-sichen
Copy link

升级了antd版本还是有相同问题

@peterleng
Copy link

这个问题修复了没有啊?
我的 antd 5.6.3,菜单收起还是会出现tooltip

@afc163
Copy link
Member

afc163 commented Aug 28, 2023

@peterleng 试试最新的 antd 版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.