@@ -34,7 +34,6 @@ function toScreamingSnakeCase(input: string): string {
3434// <input-errors [innerValidationError]="innerValidationError" [messages]="messages" [params]="messageParams"></input-errors>
3535export class FormFieldContainerComponent implements AfterContentInit , AfterViewInit {
3636
37-
3837 @ContentChild ( FormControlName ) formControl : FormControlName ;
3938 @ContentChild ( InputErrorsComponent ) public messagesBlock : InputErrorsComponent ;
4039
@@ -73,7 +72,6 @@ export class FormFieldContainerComponent implements AfterContentInit, AfterViewI
7372 }
7473
7574 updateErrorComponent ( ) {
76- console . debug ( 'setting info' , this . componentRef , this . formControl . name , this . messages , this . messageParams ) ;
7775 this . addErrorComponent ( ) ;
7876
7977 if ( this . componentRef ) {
@@ -87,7 +85,6 @@ export class FormFieldContainerComponent implements AfterContentInit, AfterViewI
8785 @HostBinding ( 'class.has-error' )
8886 get hasErrors ( ) : boolean {
8987 const hasError = ( ! this . formControl . valid && this . formControl . dirty && this . formControl . touched ) && ! this . validationDisabled ;
90- console . debug ( 'formControl' , this . formControl . name , hasError ) ;
9188
9289 if ( hasError && this . input && this . input . nativeElement ) {
9390 this . messages = Object . keys ( this . formControl . errors ) . map ( error => {
@@ -113,17 +110,17 @@ export class FormFieldContainerComponent implements AfterContentInit, AfterViewI
113110 } catch ( e ) {
114111 }
115112 this . renderer . addClass ( this . input . nativeElement , 'is-invalid' ) ;
113+
116114 }
117115 this . updateErrorComponent ( ) ;
118- console . debug ( 'formControl' , this . formControl . name , this . messageParams , this . messages ) ;
119116
120117 return hasError ;
121118 }
122119
123120 @HostBinding ( 'class.has-success' )
124121 get hasSuccess ( ) : boolean {
125122 const hasSuccess = (
126- ! this . formControl . valid &&
123+ this . formControl . valid &&
127124 this . formControl . dirty && this . formControl . touched ) &&
128125 ! this . validationDisabled ;
129126 if ( hasSuccess && this . input && this . input . nativeElement ) {
0 commit comments