Skip to content

Menu组件菜单级数较多时菜单关闭时动画效果重复执行 #8059

Open
@qq319064057

Description

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

Version

4.2.6

Environment

chrome 128.0.6613.139

Reproduction link

https://github.com/qq319064057/antv-menu

Steps to reproduce

创建一个menu组件,数据量给得多一些,层级深一些,子菜单展开方式设置为hover,在菜单打开4-5级后鼠标移出菜单,会看到各级菜单多次闪烁后再关闭

What is expected?

菜单正常关闭

What is actually happening?

菜单关闭动画重复执行


初步判断是因为鼠标移出菜单后openKeys是一级一级删除的,导致菜单在短时间内多次变化,然后每级菜单都是绑定的同一个动画,元素动态变化但是绑定同一个元素会导致动画执行问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions