Merged PR 375: Fix Protected Variable Access in Text Input Component Template

This commit is contained in:
Sebastian Neumair
2020-10-19 15:28:28 +00:00

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('| ');
}