Skip to content

Commit

Permalink
fix: select readonly input
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Apr 5, 2019
1 parent 79b906f commit 77a8486
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -30,7 +30,7 @@

<ec-datetime *ngSwitchCase="'date'" [formControl]="control" [placeholder]="field.getPlaceholder()"></ec-datetime>

<div *ngSwitchCase="'select'">
<div *ngSwitchCase="'select'">
<select [id]="field.id" [formControl]="control" [ecFocus]="focusEvent"
(change)="control.patchValue($event.target.value)" class="input" *ngIf="!formService.isReadOnly(field, item)">
<option>{{field.getPlaceholder()}}</option>
Expand All @@ -39,7 +39,7 @@
{{option.label?option.label:option}}
</option>
</select>
<input type="text" [formControl]="control" [id]="field.id" class="input" *ngIf="!formService.isReadOnly(field, item)">
<input type="text" [formControl]="control" [id]="field.id" class="input" readonly *ngIf="formService.isReadOnly(field, item)">
</div>

<div *ngSwitchDefault>
Expand Down

0 comments on commit 77a8486

Please sign in to comment.