mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
85036: Propagate ngOnChanges calls down to wrapped component
This commit is contained in:
@@ -47,6 +47,9 @@ export abstract class ThemedComponent<T> implements OnInit, OnDestroy, OnChanges
|
|||||||
// if an input or output has changed
|
// if an input or output has changed
|
||||||
if (this.inAndOutputNames.some((name: any) => hasValue(changes[name]))) {
|
if (this.inAndOutputNames.some((name: any) => hasValue(changes[name]))) {
|
||||||
this.connectInputsAndOutputs();
|
this.connectInputsAndOutputs();
|
||||||
|
if (this.compRef?.instance && 'ngOnChanges' in this.compRef?.instance) {
|
||||||
|
(this.compRef.instance as any).ngOnChanges(changes);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user