[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:
parent
7f20cb1044
commit
63c60cb60b
|
@ -35,7 +35,7 @@ export interface Option {
|
||||||
<mat-form-field class="uk-width-1-1">
|
<mat-form-field class="uk-width-1-1">
|
||||||
<mat-select #select *ngIf="type === 'select'" [required]="required" [value]="null"
|
<mat-select #select *ngIf="type === 'select'" [required]="required" [value]="null"
|
||||||
(openedChange)="stopPropagation()" [formControl]="formControl" [disableOptionCentering]="true">
|
(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">
|
<mat-option *ngFor="let option of options" [value]="option.value">
|
||||||
{{option.label}}
|
{{option.label}}
|
||||||
</mat-option>
|
</mat-option>
|
||||||
|
|
Loading…
Reference in New Issue