File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/shared/components/palette/text-area Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ import { AbstractFieldWriteComponent } from '../base-field/abstract-field-write.
5
5
6
6
@Component ( {
7
7
selector : 'ccd-write-text-area-field' ,
8
- templateUrl : './write-text-area-field.html'
8
+ templateUrl : './write-text-area-field.html' ,
9
+ providers : [ BrowserService ]
9
10
} )
10
11
export class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent implements OnInit {
11
12
12
13
textareaControl : FormControl ;
13
-
14
14
constructor ( private browserService : BrowserService ) {
15
15
super ( ) ;
16
16
}
Original file line number Diff line number Diff line change
1
+
1
2
< div class ="form-group " [ngClass] ="{'form-group-error': !textareaControl.valid && textareaControl.touched} ">
2
3
3
4
< label [for] ="id() ">
4
5
< span class ="form-label " *ngIf ="caseField.label "> {{caseField | ccdFieldLabel}}</ span >
5
6
< span class ="form-hint " *ngIf ="caseField.hint_text "> {{caseField.hint_text}}</ span >
6
7
< span class ="error-message " *ngIf ="textareaControl.errors && textareaControl.touched "> {{textareaControl.errors | ccdFirstError}}</ span >
7
8
</ label >
8
- < textarea (input) ="autoGrow($event) " class ="form-control bottom-30 " [id] ="id() " rows ="3 " [formControl] ="textareaControl " > </ textarea >
9
+
10
+ < textarea (input) ="autoGrow($event) " class ="form-control bottom-30 " [id] ="id() " rows ="3 " [formControl] ="textareaControl "> </ textarea >
9
11
10
12
</ div >
11
13
You can’t perform that action at this time.
0 commit comments