bpmn-io / diagram-js

A toolbox for displaying and modifying diagrams on the web.
MIT License
1.65k stars 418 forks source link

Dragging preview does not show Connection markers #904

Closed marstamm closed 1 month ago

marstamm commented 1 month ago

Describe the Bug

When I drag elements to rearange them, the end marker is not shown

image

Steps to Reproduce

  1. Open https://demo.bpmn.io/s/start
  2. Select all
  3. Drag around the canvas
  4. The preview does not have arrow heads

Expected Behavior

Similar to pasting, connection end markers should be shown: image

Environment

Please complete the following information:

Notes

This happens because drag.cleanup is called immediately on start, which cleans up clones markers.

Found during and related to https://github.com/camunda/camunda-modeler/issues/4307

nikku commented 1 month ago

:tada: