Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
always include empty option in select fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Oct 9, 2020
1 parent 8d8453f commit dee7983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/additional-field/additional-field.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ng-template ng-notfound-tmp let-searchTerm="searchTerm"></ng-template>
</ng-select>
<select *ngSwitchCase="'select'" [attr.id]="ticketUUID + '-' + field.name" class="custom-select" formControlName="0" appInvalidFeedback>
<option value="" *ngIf="!field.required"></option>
<option value=""></option>
<option *ngFor="let c of field.restrictedValues" [ngValue]="c">{{getRestrictedValueLabel(c)}}</option>
</select>
<div *ngSwitchCase="'checkbox'" [attr.id]="ticketUUID + '-' + field.name" appInvalidFeedback [invalidFeedbackFieldName]="field.name" [invalidFeedbackForm]="form">
Expand Down

0 comments on commit dee7983

Please sign in to comment.