I’ve found what seems to be a bug. I’ve managed to create a simple test case. If I modify the Org Chart Editor so the ‘Remove Role’ click handler is this
myDiagram.startTransaction("remove role"); myDiagram.commandHandler.scrollToPart(); myDiagram.commandHandler.deleteSelection(); myDiagram.commandHandler.scrollToPart(); myDiagram.commitTransaction("remove role");
Then I get an exception thrown saying ‘Collection was modified during iteration’ during the second call to scrollToPart. I believe this is causing us other issues with the diagram becoming unresponsive, although that’s not apparent in this test case