mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
98855: Remove temp themed ng-content container
This is problematic when ng-content is provided but it's not used
This commit is contained in:
@@ -91,11 +91,10 @@ export abstract class ThemedComponent<T> implements OnInit, OnDestroy, OnChanges
|
||||
).subscribe((constructor: GenericConstructor<T>) => {
|
||||
const factory = this.resolver.resolveComponentFactory(constructor);
|
||||
|
||||
const contentNodes = [[...this.themedElementContent.nativeElement.children].map(node => node)] || undefined;
|
||||
|
||||
this.compRef = this.vcr.createComponent(factory, undefined, undefined, contentNodes);
|
||||
this.compRef = this.vcr.createComponent(factory, undefined, undefined, [this.themedElementContent.nativeElement.children]);
|
||||
this.connectInputsAndOutputs();
|
||||
this.cdr.markForCheck();
|
||||
this.themedElementContent.nativeElement.remove();
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user