@TricksterX wrote:
Hi!
Please, I would like to know if I might be doing something wrong. I’m calling the “diagram.undoManager.clear()” method, but I’m still able do undo some operations after that. Is there any possible reason for this happening?
I need to clear this history because some operations are persisted on my database (like creating a new node, or changing its parent). And my intention is to clear all history after these operations.
Printing the “historyIndex” property on console, even shows the -1 value, meaning that my stack should be empty. However, pressing CTRL Z still have the undo effect.
Posts: 3
Participants: 2