Skip to content

Commit

Permalink
fix: 🐛 remove class from parent when no error
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Feb 10, 2021
1 parent 3f8a8a8 commit 9cb99ff
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ export class ControlErrorsDirective implements OnInit, OnDestroy {
}
this.setError(text, controlErrors);
} else if (this.ref) {
if (this.isInput) {
this.host.nativeElement.parentElement.classList.remove('error-tailor-has-error');
}
this.setError(null);
}
}
Expand Down

0 comments on commit 9cb99ff

Please sign in to comment.