Skip to content

vc-tree keep drag-over-gap-xxx class after tree drag end #3259

@ZenDay

Description

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

Version

1.7.2

Environment

OSX Mojave 10.14.6/Chrome 86, Vue 2.6.11

Reproduction link

https://www.antdv.com/components/tree-cn/

Steps to reproduce

just drag any node and drop it to any gap place as fast as possible.

What is expected?

The drag-over-gap class would be clear.

What is actually happening?

The drag-over-gap class is still there.

image


It seems like the code at https://github.com/vueComponent/ant-design-vue/blob/master/components/vc-tree/src/Tree.jsx#L293, which cause onDragEnter's setState code execute after onDragEnd's.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions