clientIO / JointJS_plus

JointJS+ support
4 stars 9 forks source link

With the parameter "async": true the fork action doesn't work well #69

Closed fbrillante closed 8 years ago

fbrillante commented 8 years ago

If the parameter async: true is set into the Paper, the fork action from the halo does not work and this error can be found in browser's console:

TypeError: this._cloneView is undefined this._cloneView.pointerdown(evt, x, y);

The issue can be easily reproduced also in Rappid examples, such as "BPMN Editor".

kumilingus commented 8 years ago

Hi,

thanks for reporting this. We are preparing a fix for that. It's important to pass async: false option when cloning an element.

options.graph.addCells([clone, link], { halo: this.cid, async: false });

kumilingus commented 8 years ago

Fixed in v2.0.