angular-tree-component icon indicating copy to clipboard operation
angular-tree-component copied to clipboard

Drag external element into tree not working

Open PixelBumper opened this issue 4 years ago • 3 comments

Hello :)

I am working on an angular. 6 project and I am trying to drag an external element into the tree. Unfortunately I get the following error: ERROR TypeError: e.getIndexInParent is not a function

I have built a minimal example that reproduces the issue

I am using angular-tree-component version 8.5.6

PixelBumper avatar Aug 14 '20 10:08 PixelBumper

just tried with the latest versions of angular and angular-tree-component and the problem is still the same (angular10 stackblitz).

I am starting to think that I am not doing it right 🤔 any ideas?

PixelBumper avatar Aug 14 '20 11:08 PixelBumper

Depending on your use case, I think you have to use either dragEnter or dragOver.

Trixt0r avatar Aug 16 '20 08:08 Trixt0r

@PixelBumper : Please check the below link...

https://github.com/faizu88/App-Organizer-Tree-View-with-Drag-Drop

faizu88 avatar Aug 28 '20 17:08 faizu88