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

nz-tree responses to drag events when nzDraggable is set to false #2332

Closed
Fanoid opened this issue Oct 23, 2018 · 0 comments
Closed

nz-tree responses to drag events when nzDraggable is set to false #2332

Fanoid opened this issue Oct 23, 2018 · 0 comments
Assignees

Comments

@Fanoid
Copy link

Fanoid commented Oct 23, 2018

Version

1.7.0

Environment

MacOS, Chrome 69

Reproduction link

https://stackblitz.com/edit/angular-kaupwu

Steps to reproduce

  1. create a nz-tree components, then use nzTreeTemplate to define tree nodes
  2. set nzDraggable to false
  3. add draggable="true" to elements in nzTreeTemplate
  4. drag one tree node to other parent nodes

What is expected?

nz-tree should not response to other user-defined drag events, as nzDraggable is set to false.

What is actually happening?

The node can be dragged to other places.

Other?

Context: We want to drag tree only leaf nodes to outside of the tree, so we do not use the pre-defined events. But it turns out the tree still make changes when dragging.
Moreover, as our tree data is very large (more than 350 nodes), the process of events causes severe lag for every drag event (~60ms). Especially lots of dragover event are triggered and processed (which is not easy to show in the demo.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants