I notice this bug, which I guess is caused by executed xtree methods who execute to fast after each other. For example this happens when I do something like this.
I select a node to cut and store it in a variable:
oCuttedNode = tree.getSelected();
oCuttedNodeParent = tree.getSelected().parentNode;
Now I paste the node into another node:
I select the node to paste into and store this into a variable:
oPastingNode = tree.getSelected();
I remove the cutted node:
Now the parent of the cuttedNode gets focus, I want the focus to be on the node to paste into and not on the CuttedNodeParent.
Executing the serverside code to do a copy paste
Reload the oPastingNode which just got an extra child:
However this all happens so fast, the tree gets confused with blur and focus, which results in multiple nodes being selected, focussed and blurred.
How can I prevent this from happening?