Skip to content

Commit 5876933

Browse files
Fix missing unsubscribe
1 parent 2c7592b commit 5876933

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

angular-reactive-validation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-reactive-validation",
33
"description": "Reactive Forms validation shouldn't require the developer to write lots of HTML to show validation messages. This library makes it easy.",
4-
"version": "4.0.0",
4+
"version": "4.0.1",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/davidwalschots/angular-reactive-validation.git"

angular-reactive-validation/src/validation-messages/validation-messages.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class ValidationMessagesComponent implements AfterContentInit, OnDestroy,
7777
}
7878

7979
ngAfterContentInit() {
80-
this.messageComponents.changes.subscribe(this.validateChildren);
80+
this.messageComponentsChangesSubscription.add(this.messageComponents.changes.subscribe(this.validateChildren));
8181
this.validateChildren();
8282

8383
this._for.forEach(control => {

0 commit comments

Comments
 (0)