Sequence flow does not snap to edge after redo

Hi,

I’m using the modeler on https://demo.bpmn.io. If I delete some tasks, choose Undo, then choose Redo, after Redo, the sequence flow is not snapped to the edge of the target task any more. Please see the attached images.

Create a model:
image

Delete some tasks:
image

Choose Undo (Ctrl-Z)
image

Choose Redo (Ctrl-Y)
image

This might be similar to another post (Snap the arrow to the edge of node elements) but it happens to Redo rather than importing a file.

I have the same problem with the modeler in our web application. Adjusting the connection waypoints and emitting “elements.changed” as shown in the other post might be the solution, but where to put that code?

Thanks,
Bruce

Hi Bruce,
very nice you might already find a solution inside the forum! It’s hard to tell where to put the solution inside your application when we can’t see any code. Is there a chance to give us more details?

However, the behavior you described is indeed a bug, since I was able to reproduce it. I really want to encourage you to create a new issue with a clear description so we can deal with it!

Minimal test case for this issue:
screencapture

Start diagram: test.bpmn (2.2 KB)

I created a bug ticket for this issue: Cf. bpmn-js #940.

2 Likes