Fixed default @Input() values not working for themed components

This commit is contained in:
Alexandre Vryghem
2023-02-08 15:21:07 +01:00
parent b4acb5cbed
commit 04d0621b4a

View File

@@ -110,7 +110,7 @@ export abstract class ThemedComponent<T> implements OnInit, OnDestroy, OnChanges
protected connectInputsAndOutputs(): void {
if (isNotEmpty(this.inAndOutputNames) && hasValue(this.compRef) && hasValue(this.compRef.instance)) {
this.inAndOutputNames.forEach((name: any) => {
this.inAndOutputNames.filter((name: any) => this[name] !== undefined).forEach((name: any) => {
this.compRef.instance[name] = this[name];
});
}