p-tree unable to drag to root

UI Components for Angular
Post Reply
WeaponX
Posts: 1
Joined: 16 Nov 2022, 11:37

16 Nov 2022, 11:40

When I console log the dropped and dragged node from event onDrop the dropped element is always the closest node and never undefined or null as it should be when dragging to root of the tree.

See stackblitz example made from official blitz and added onDrop method.
https://stackblitz.com/edit/primeng-tre ... mponent.ts

How can I see if the node is dropped on the tree root?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests