tree icon indicating copy to clipboard operation
tree copied to clipboard

possible one-off bug in moving a node

Open sdavey opened this issue 2 years ago • 1 comments

it looks like there may be a one-off bug when dragging and dropping in a subtree. I made the following change to the first line of getChildIndex(): let index = parent.data.parent ? -1 : 0 without that change the new position in the parent is one higher than it should be because when looping through the parent's children, the first node is the "tree-content" node.

sdavey avatar Mar 05 '23 22:03 sdavey

So that's what's happening. Looks like I'll be forking/patching this then

MattPurland avatar Feb 10 '25 13:02 MattPurland