App freezes after pasting elements on area of previously removed diagram
See original GitHub issueDescribe the Bug
Steps to Reproduce
- Open the diagram in modeler Test_Diagram.txt
- Copy the diagram.
- Press Ctl + V (do not complete paste operation)
- Press Clt + Z and remove/undo the diagram completely.
- Now Paste the copied diagram exactly at the place of the diagram which was removed.
TypeError: Cannot read property 'childNodes' of undefined
at W._createContainer (GraphicsFactory.js:110)
at W.create (GraphicsFactory.js:136)
at C._addElement (Canvas.js:548)
at C.addShape (Canvas.js:570)
at Np.execute (CreateShapeHandler.js:54)
at CommandStack.js:404
at r._atomicDo (CommandStack.js:367)
at r._internalExecute (CommandStack.js:398)
at r.execute (CommandStack.js:147)
at Fl.dl.createShape (Modeling.js:290)
Expected Behavior
The diagram should have been pasted.
Environment
- OS: [MacOS 10.14.6 ]
- Camunda Modeler Version: [Version 3.3.0-alpha.3 (3.3.0-alpha.3.3814)]
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Excel crashes when copying and pasting a power pivot chart ...
Excel is crashing when copying and pasting a Pivot Chart. The chart seems to get converted from a pivot chart to a normal...
Read more >How to Fix Excel if It Freezes When You Copy and Paste
On a Windows computer, press the Windows key + I to bring up the Settings menu and go to Apps. There, select Microsoft...
Read more >Excel freezes when copying / cutting to paste elsewhere
Go to the "Cut, copy, and paste" section. Uncheck "Show Paste Options button when content is pasted" and "Show Insert Options buttons".
Read more >Copy and paste hangs for a long time or fails to work in ...
When trying to copy and paste elements in an AutoCAD drawing, the process hangs for a long time (even several minutes), or it...
Read more >How to FIX Search Bar Crashes & Freezes in Windows 10 ...
Windows 10 search bar crashing or not working? ... menu/search bar may crash or close after typing, meaning you can't search on Windows...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed via https://github.com/bpmn-io/diagram-js/commit/6ebd3a571af1f1dccdb2a9d7d13fcd3941e4a702
Waiting for releasing for closing that.
Dragging operations should be canceled when user executes a command while dragging.