You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Dragosu,
I built a tree with a menu to add/remove item.
For each change, I dump tree content with method serialize of the acitree API.
I noticed that if I remove an item than the remove callback is called before the item is really removed.
According to the acitree source code, we can see the following scheduling of methods calls :
// just remove the item
this._success(item, options);
this._removeItem(item);
Could you please confirm or infirm the problem ?
If it's confirmed than could you help me to solve it ?
Thank you in advance for your response.
Best regards,
Franck
The text was updated successfully, but these errors were encountered:
Hi, you are right, the element is removed from the DOM after the .success function call. I think there was a reason why I did it this way, hard to tell that I don't remember why :) You can try to remove the element first or, if something goes wrong, detach first then remove in the end. I think it depends on what logic is implemented around aciTree in the success callback ...
Hi Dragosu,
I built a tree with a menu to add/remove item.
For each change, I dump tree content with method serialize of the acitree API.
I noticed that if I remove an item than the remove callback is called before the item is really removed.
According to the acitree source code, we can see the following scheduling of methods calls :
// just remove the item
this._success(item, options);
this._removeItem(item);
Could you please confirm or infirm the problem ?
If it's confirmed than could you help me to solve it ?
Thank you in advance for your response.
Best regards,
Franck
The text was updated successfully, but these errors were encountered: