diff --git a/src/mixins/canvas_grouping.mixin.js b/src/mixins/canvas_grouping.mixin.js index 4ce96effc3f..040d5628e61 100644 --- a/src/mixins/canvas_grouping.mixin.js +++ b/src/mixins/canvas_grouping.mixin.js @@ -61,7 +61,7 @@ // remove group alltogether if after removal it only contains 1 object this.discardActiveGroup(e); // activate last remaining object - this.setActiveObject(activeGroup.item(0)); + this.setActiveObject(activeGroup.item(0), e); return; } } @@ -82,7 +82,7 @@ var group = this._createGroup(target); group.addWithUpdate(); - this.setActiveGroup(group); + this.setActiveGroup(group, e); this._activeObject = null; this.fire('selection:created', { target: group, e: e }); @@ -127,7 +127,7 @@ group.addWithUpdate(); this.setActiveGroup(group, e); group.saveCoords(); - this.fire('selection:created', { target: group }); + this.fire('selection:created', { target: group, e: e }); this.renderAll(); } },