diff --git a/projects/editor/src/app/components/unit-view/page-view/canvas/canvas-element-overlay.ts b/projects/editor/src/app/components/unit-view/page-view/canvas/canvas-element-overlay.ts index 7bc47388cb91b9cfd8bcfd5af1661630956c513f..bfbb6a2afe9c5cc223a7cecef777479399fb9c2f 100644 --- a/projects/editor/src/app/components/unit-view/page-view/canvas/canvas-element-overlay.ts +++ b/projects/editor/src/app/components/unit-view/page-view/canvas/canvas-element-overlay.ts @@ -33,6 +33,9 @@ export abstract class CanvasElementOverlay implements OnInit, OnDestroy { this.childComponent = this.elementContainer.createComponent(componentFactory); this.childComponent.instance.elementModel = this.element; + // Make children not clickable. This way the only relevant events are managed by the overlay. + this.childComponent.location.nativeElement.style.pointerEvents = 'none'; + this.selectionService.selectElement({ componentElement: this, multiSelect: false }); if (this.childComponent.instance instanceof FormElementComponent) {