We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9facba commit 90571d5Copy full SHA for 90571d5
projects/angular-editor-fabric-js/src/lib/angular-editor-fabric-js.component.ts
@@ -510,15 +510,14 @@ export class FabricjsEditorComponent implements AfterViewInit {
510
const activeObject: any = this.canvas.getActiveObject();
511
const activeGroup: any = this.canvas.getActiveObjects();
512
513
- if (activeObject && !activeObject._objects) {
514
- this.canvas.remove(activeObject);
515
- // this.textString = '';
516
- } else if (activeGroup) {
+ if (activeGroup) {
517
this.canvas.discardActiveObject();
518
const self = this;
519
activeGroup.forEach((object) => {
520
self.canvas.remove(object);
521
});
+ } else if (activeObject) {
+ this.canvas.remove(activeObject);
522
}
523
524
0 commit comments