Trouble with copy and paste in Version 3.0.0, Previous version was just fine

Hi,

I have some trouble with the copy and paste feature with the new version. I could not reproduce it on demo.bpmn.io. However with the previous version it was working just fine.

The issue I have:

  • Copy of an element seem to works
  • By pasting the copied element => Nothing happens.
    canAttach() and canCreate() result in false.

I am not sure how I can deal with that.

I have a simple element like this.

image

here are some debug information
image

image

For the action: “element.paste”, the context of the element looks like this

image

image

canAttach(…)
image

canCreate(…)
image

canDrop(…)
image

canInsert(…) => calling canDrop with(shape, flow.parent, position), However flow is the Root element in this case.
image

image

Any ideas, what might cause this problem?

Thanks for reporting! We’ve just released breaking changes that comes with our keyboard binding. Maybe the issue appears at this place, but not sure about it.

Just opened a bug ticket for that, so we will try to debug it.

Hi @mpn
good news, this PR should fix it. I think we’ll have a patch release soon to have this fix in a released version.

Thanks a lot! I appreciate the help here.

1 Like