CTRL + Z distorts the flow

I have used bpmn-js and bpmn-moddle for my react based project. But whenever I expand any process that has subprocesses in it, and then do some actions and press ctrl + z or simply press ctrl + z after expanding, then the flow is distorted and the changes which I did is not saved. Can someone help how to fix this issue using javascript, react, and bpmn-js?


can you reproduce this behavior on BPMN Editor | bpmn-js modeler Demo | demo.bpmn.io ?

If so, please share a screen recording of the behavior you are experiencing. It is hard to understand what is happening from text alone.


Actually this behaviour is not on the bpmn online editor, it is in my app, although I haven’t defined any behaviour on clicking ctrl + z. I have used bpmn-js/lib/Modeler, ‘bpmn-js-properties-panel’, bpmn-moddle/resources/bpmn/json/bpmn.json libraries in the project.

Video link: ctrl + z issue (2).mp4 - Google Drive

@Martin hi, added the video link by @shaansrivastava , can u check and help