Skip to content

Commit

Permalink
fix(cdk): when the consumer unsubscribes, clean up data ready for nex…
Browse files Browse the repository at this point in the history
…t subscription (#6554)
  • Loading branch information
splincode authored Jan 26, 2024
1 parent 7d7a958 commit 0e2b2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/cdk/observables/control-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export function tuiControlValue<T>(
throw new TuiValueChangesException();
}

control.valueChanges.pipe(startWith(control.value)).subscribe(subscriber);
return control.valueChanges.pipe(startWith(control.value)).subscribe(subscriber);
});
}

0 comments on commit 0e2b2e3

Please sign in to comment.