CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 494 forks source link

Drag external element into tree not working #854

Open PixelBumper opened 4 years ago

PixelBumper commented 4 years ago

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 commented 4 years ago

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?

Trixt0r commented 4 years ago

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

faizu88 commented 4 years ago

@PixelBumper : Please check the below link...

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