Skip to content
Snippets Groups Projects
Commit 5f5e8a1a authored by rhenck's avatar rhenck
Browse files

[editor] Fix compound sub element selection

Was not correctly setting the pointer event for ClozeComponents.
parent b11a9686
No related branches found
No related tags found
No related merge requests found
...@@ -40,10 +40,10 @@ export abstract class CanvasElementOverlay implements OnInit, OnDestroy { ...@@ -40,10 +40,10 @@ export abstract class CanvasElementOverlay implements OnInit, OnDestroy {
this.selectionService.selectElement({ componentElement: this, multiSelect: false }); this.selectionService.selectElement({ componentElement: this, multiSelect: false });
if (this.childComponent.instance instanceof ClozeComponent) { if (this.childComponent.instance instanceof ClozeComponent) {
this.childComponent.location.nativeElement.style.pointerEvents = 'unset';
this.childComponent.instance.elementSelected this.childComponent.instance.elementSelected
.pipe(takeUntil(this.ngUnsubscribe)) .pipe(takeUntil(this.ngUnsubscribe))
.subscribe((element: ClozeElement) => { .subscribe((element: ClozeElement) => {
this.childComponent.location.nativeElement.style.pointerEvents = 'unset';
this.selectionService.selectCompoundChild(element); this.selectionService.selectCompoundChild(element);
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment