Skip to content

Commit 45b949a

Browse files
crisbetojelbourn
authored andcommitted
fix(select): blank option label throwing off alignment (#11994)
Fixes selecting an option that has a blank string as a label throwing off the alignment of `mat-select`. Fixes #11969.
1 parent b1d4fe1 commit 45b949a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/select/select.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="mat-select-value" [ngSwitch]="empty">
88
<span class="mat-select-placeholder" *ngSwitchCase="true">{{placeholder || '\u00A0'}}</span>
99
<span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger">
10-
<span *ngSwitchDefault>{{triggerValue}}</span>
10+
<span *ngSwitchDefault>{{triggerValue || '\u00A0'}}</span>
1111
<ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content>
1212
</span>
1313
</div>

0 commit comments

Comments
 (0)