Fix Protected Variable Access in Text Input Component Template

This commit is contained in:
Sebastian
2020-10-19 17:24:19 +02:00
parent 50b8b1e042
commit a8ff13dd60

View File

@@ -39,7 +39,7 @@ export class UiTextInputComponent implements ControlValueAccessor, OnInit {
public touched = false;
public focussed = false;
protected get isInvalid(): boolean {
public get isInvalid(): boolean {
return (
!this.ngControl.valid &&
!this.ngControl.disabled &&
@@ -47,7 +47,7 @@ export class UiTextInputComponent implements ControlValueAccessor, OnInit {
);
}
protected get errorMessage(): string {
public get errorMessage(): string {
return Object.values(this.ngControl.errors).join('| ');
}