我从 md-select 中选择了一个值,但 md-select 中的“箭头”在选择后仍然显示。
HTML
<div class="form-group spaces" style="width: 50%">
<md-select placeholder="Claim Type" name="selectedClaimType"
ngDefaultControl formControlName="selectedClaimType"
[(ngModel)]="selectedClaimType" [formControl]="claimType" >
<md-option *ngFor="let c of ClaimTypes"
[value]="c.ClaimTypeId">{{c.ClaimDescription}}</md-option>
</md-select>
</div>
尝试在 mat-select 中通过 css 修改宽度,但无济于事。
请参阅附件..任何建议高度赞赏
添加渲染的 html 代码
<md-select class="mat-select ng-tns-c2-1 mat-primary ng-valid ng-dirty ng-
touched" formcontrolname="selectedClaimType" name="selectedClaimType"
ngdefaultcontrol="" placeholder="Type" role="listbox" tabindex="0"
aria-label="Claim Type" aria-labelledby="" aria-required="false"
aria-disabled="false" aria-invalid="false" aria-owns="md-option-0
md-option-1 md-option-2">
<div class="mat-select-trigger" cdk-overlay-origin="">
<span class="mat-select-placeholder ng-trigger
ng-trigger-transformPlaceholder mat-floating-placeholder"
style="opacity: 1; width: 99px; top: -22px; left: -2px;
transform: scale(0.75);">Type </span><!---->
<span class="mat-select-value ng-tns-c2-1">
<span class="mat-select-value-text">High Voltage Battery</span> </span>
<span class="mat-select-arrow"></span>
<span class="mat-select-underline"></span></div><!---->
</md-select>