Skip to content

Commit 90571d5

Browse files
committed
conflict resolved
1 parent c9facba commit 90571d5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

projects/angular-editor-fabric-js/src/lib/angular-editor-fabric-js.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,14 @@ export class FabricjsEditorComponent implements AfterViewInit {
510510
const activeObject: any = this.canvas.getActiveObject();
511511
const activeGroup: any = this.canvas.getActiveObjects();
512512

513-
if (activeObject && !activeObject._objects) {
514-
this.canvas.remove(activeObject);
515-
// this.textString = '';
516-
} else if (activeGroup) {
513+
if (activeGroup) {
517514
this.canvas.discardActiveObject();
518515
const self = this;
519516
activeGroup.forEach((object) => {
520517
self.canvas.remove(object);
521518
});
519+
} else if (activeObject) {
520+
this.canvas.remove(activeObject);
522521
}
523522
}
524523

0 commit comments

Comments
 (0)