phphe/he-tree

Get closest node in the same parent

LuisPassos opened this issue · 3 comments

Hi,

When using eachDroppable, I want to know the closestNode belonging to the same parent. Is this currently possible?

Thank you

phphe commented

check this: #128

#128 retrieves the closestNode but not always belonging to the same direct parent (same level). Is there any way to get the same level direct parent ?

Thank you

phphe commented

try closestNode.parent