Camunda-modeler: App freezes after pasting elements on area of previously removed diagram

Created on 13 Aug 2019  路  5Comments  路  Source: camunda/camunda-modeler

__Describe the Bug__

Kapture 2019-08-13 at 13 32 19

__Steps to Reproduce__

  1. Open the diagram in modeler Test_Diagram.txt
  2. Copy the diagram.
  3. Press Ctl + V (do not complete paste operation)
  4. Press Clt + Z and remove/undo the diagram completely.
  5. 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)]
bug

All 5 comments

Ooops, accidentally closed. :see_no_evil:

Dragging operations should be canceled when user executes a command while dragging.

Good catch 鈿★笍

Closed via Camunda modeler 3.4.0 release.

Was this page helpful?
0 / 5 - 0 ratings