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 e4f483c308
commit d6147e5236

View File

@@ -103,7 +103,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];
});
}