[Library | Trunk]: Input: Hide placeholder from options

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59627 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-10-19 16:47:23 +00:00
parent 7f20cb1044
commit 63c60cb60b
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export interface Option {
<mat-form-field class="uk-width-1-1">
<mat-select #select *ngIf="type === 'select'" [required]="required" [value]="null"
(openedChange)="stopPropagation()" [formControl]="formControl" [disableOptionCentering]="true">
<mat-option *ngIf="placeholder && formControl.value === ''" [value]="''">{{placeholder}}</mat-option>
<mat-option *ngIf="placeholder" class="uk-hidden" [value]="''">{{placeholder}}</mat-option>
<mat-option *ngFor="let option of options" [value]="option.value">
{{option.label}}
</mat-option>