Skip to content

Commit

Permalink
Fix missing unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwalschots committed Jun 7, 2020
1 parent 2c7592b commit 5876933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion angular-reactive-validation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-reactive-validation",
"description": "Reactive Forms validation shouldn't require the developer to write lots of HTML to show validation messages. This library makes it easy.",
"version": "4.0.0",
"version": "4.0.1",
"repository": {
"type": "git",
"url": "https://github.com/davidwalschots/angular-reactive-validation.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class ValidationMessagesComponent implements AfterContentInit, OnDestroy,
}

ngAfterContentInit() {
this.messageComponents.changes.subscribe(this.validateChildren);
this.messageComponentsChangesSubscription.add(this.messageComponents.changes.subscribe(this.validateChildren));
this.validateChildren();

this._for.forEach(control => {
Expand Down

0 comments on commit 5876933

Please sign in to comment.