I am currently working with the latest version of mat-select, version 16. I have a requirement where, when a specific option is selected and the select drop-down is clicked again, that selected option should not appear in the options list. Below is the HTML code I am using for this:
<mat-form-field>
<mat-select formControlName="value" selected="option1">
<mat-option *ngFor="let item of options"
[value]="item.value">{{ item.label }}</mat-option>
</mat-select>
</mat-form-field>
The available items are option1, option2, option3.
Is there a way to ensure that only option2 and option3 show in the dropdown menu when option1 is already selected? Any help would be highly appreciated!
Looking forward to your response!! Thank you in advance!!!