I am using the material select element mat-select in my application. I want to load the option list just below the select field, like a regular select box and not as a overlay style give. For that I have applied the below style to given select element.
<mat-form-field>
<mat-select [formControlName]="input1">
<mat-option>None</mat-option>
<mat-option *ngFor="let opt_value of input1.enumNames; let i = index" value="{{input1.enum[i]}}" >{{opt_value}}</mat-option>
</mat-select>
</mat-form-field>
Here is the style that I applied after inspecting the responsible element.
.mat-select-panel {
transform: translate(-2px, 44px) !important;
font-family: Lato,sans-serif;
}
Now when I click the first time on the select field, The options list loads as desired, just below the select field. Like this...
But after selecting any option (except than 'none') if I again click on the field to change the option, the option list load as old material style like this and hide my select field somewhere behind yellow highlight.
How to style Mat-options or mat-select-panel correctly so that I always get the result as per the first image.

