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

Dropdown 下拉菜单,带Icon,Children,弹出错位 #48620

Open
zystudios opened this issue Apr 25, 2024 · 2 comments
Open

Dropdown 下拉菜单,带Icon,Children,弹出错位 #48620

zystudios opened this issue Apr 25, 2024 · 2 comments
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@zystudios
Copy link

Reproduction link

Edit on StackBlitz

image

Steps to reproduce

打开demo链接即可复现

需要同时满足几个条件

  1. 设置了min-width,出现水平滚动条
  2. 下拉菜单有icon
  3. 有二级菜单

目测是因为有了icon以后,菜单的宽度不够导致的

What is expected?

弹出菜单不要错位

What is actually happening?

菜单错位

Environment Info
antd 5.16.4
React 18
System windows10
Browser chrome
Copy link

stackblitz bot commented Apr 25, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@MadCcc MadCcc added 🐛 Bug Ant Design Team had proved that this is a bug. and removed unconfirmed labels May 8, 2024
@zystudios
Copy link
Author

临时解决办法,加个宽度 style可以暂时解决

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

No branches or pull requests

2 participants