Skip to content

Commit cb5b15e

Browse files
crisbetovivian-hu-zz
authored andcommitted
fix(select): allow extra content to be projected after label in mat-optgroup (#13396)
Allows for consumers to project extra content into the label of `mat-optgroup`. Currently any content that isn't a `mat-option` won't be rendered. Fixes #11489.
1 parent d58db5d commit cb5b15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/core/option/optgroup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label>
1+
<label class="mat-optgroup-label" [id]="_labelId">{{ label }} <ng-content></ng-content></label>
22
<ng-content select="mat-option, ng-container"></ng-content>

0 commit comments

Comments
 (0)