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

subMenu disappear flicker (version >= 4.1.2) #24103

Closed
1 task done
cszo opened this issue May 13, 2020 · 4 comments
Closed
1 task done

subMenu disappear flicker (version >= 4.1.2) #24103

cszo opened this issue May 13, 2020 · 4 comments

Comments

@cszo
Copy link

cszo commented May 13, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://codepen.io/cszo/pen/yLYEQxZ

Steps to reproduce

当我将菜单项悬停在一个菜单项 并快速切换悬停至同一级别的另一个菜单项时,上一个子菜单消失闪烁
when i hover the menu-item and quickly hover another menu-item at the same level, the previous subMenu disappear flicker

What is expected?

不闪烁 跟4.1.1及之前版本一样

What is actually happening?

当我将菜单项悬停在一个菜单项 并快速切换悬停至同一级别的另一个菜单项时,上一个子菜单消失闪烁
when i hover the menu-item and quickly hover another menu-item at the same level, the previous subMenu disappear flicker

Environment Info
antd 4.1.2
React 16.13.1
System macOS
Browser chrome 81.0.4044.138(正式版本) (64 位)

antd4.1.1正常:https://codepen.io/cszo/pen/ZEbjpaG
antd4.1.2异常:https://codepen.io/cszo/pen/yLYEQxZ

@shaodahong
Copy link
Member

Resolved by #23664, Upgrade version >= 4.2.0

@cszo
Copy link
Author

cszo commented May 13, 2020

Resolved by #23664, Upgrade version >= 4.2.0

4.2.0依然有这个问题啊。。。当鼠标在menu-item上面上下快速移动 子菜单的渲染还会有重叠的感觉。。https://codepen.io/cszo/pen/xxwJXVp

@shaodahong shaodahong reopened this May 13, 2020
@cszo cszo changed the title subMenu disappear flicker 4.1.2 subMenu disappear flicker (version >= 4.1.2) May 13, 2020
@mjfwebb
Copy link
Contributor

mjfwebb commented May 13, 2020

Probably could be improved by using z-index. I.e the submenu which is closing would have a lower index than the one which is opening.

@afc163
Copy link
Member

afc163 commented May 16, 2020

Resolved by #23664, try 4.2.2

@afc163 afc163 closed this as completed May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants