ignite-ui icon indicating copy to clipboard operation
ignite-ui copied to clipboard

igTree nodeDropped - incorrect data property for ui.draggable

Open jackofdiamond5 opened this issue 7 years ago • 0 comments

Description

The data property of ui.draggable is incorrect because nodeDropped receives information about the node that was being dragged, which gets removed after being dropped. Thus, it tries to access the node that is now in the place of the previously dragged node. This does not occur with nodeDropping.

Steps to reproduce

  1. Open the JSFiddle
  2. Open the developer tools
  3. Try dragging Puff and place it after Fluff

Result

Fluff is logged.

Expected result

Puff is logged.

Attachments

fluff

jackofdiamond5 avatar Jul 06 '18 08:07 jackofdiamond5