Merge pull request #4644 from jlipka/fix/form-control-container-unsubscribe

fix: call parent ngOnDestroy in dynamic form control container
This commit is contained in:
Tim Donohue
2025-09-09 16:36:35 -05:00
committed by GitHub

View File

@@ -437,6 +437,7 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
* Unsubscribe from all subscriptions * Unsubscribe from all subscriptions
*/ */
ngOnDestroy(): void { ngOnDestroy(): void {
super.ngOnDestroy();
this.subs this.subs
.filter((sub) => hasValue(sub)) .filter((sub) => hasValue(sub))
.forEach((sub) => sub.unsubscribe()); .forEach((sub) => sub.unsubscribe());