Skip to content

DragLine remains visible even when canDropForeignDragObject returns false #132

@francesc79

Description

@francesc79

Describe the bug
When canDropForeignDragObject returns false, the drag operation stops correctly, but the DragLine remains visible. Additionally, tree.getDragLineStyle() still returns style data, resulting in inconsistent visual feedback.

To Reproduce

  1. Clone or open this repo
  2. Drag the "Drag me into the tree!" box onto the tree
  3. canDropForeignDragObject returns false
  4. The drag line still appears and doesn't disappear

Expected behavior
The DragLine should not be rendered when the drop is not allowed, and getDragLineStyle() should return null or no style.

Screenshots

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions