@Dominic.Lerbs wrote:
Hello,
two questions regarding this example (the Delta node is set to copyable=false):
https://codepen.io/dominic-simplan/pen/dyobOpQ?editors=1010
If I select all elements, copy all using Ctrl+C and paste them using Ctrl+V, the ModelChangedListener receives events about removed links. Why? The data is copied, so I shouldn’t get a remove event? I assume internally the links of the non-coypable nodes are removed, but this shouldn’t trigger a ModelChangedEvent as this is not a change I would expect to occur on my model if I copy something?
If I select all elements, and copy them by pressing Ctrl and dragging them using the mouse, exeptions are logged in the console:
TypeError: a.diagram is null
Posts: 2
Participants: 2