The example. https://codesandbox.io/s/determined-panka-6beqy?file=/src/index.tsx
I solved it. But it's a little strange. https://codesandbox.io/s/xcw5h
You added an element to the graph and immediately removed it.
I suppose the
circuitPaper.model graph was not the same a
Do not add the same model instance to more than one graph. Every element has a reference to the graph. It can not have 2 references. You need to clone it.
const clone = el.clone(); clone.set('id', el.id);
If you don't clone element an unexpected behaviour can be encountered.
|Issue Title||Created Date||Updated Date|