-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
mat-icon for mat-form-field shows below mat-form-field component
Code:
<mat-form-field class="full-width" appearance="fill">
<mat-label translate>attributes.FILE</mat-label>
<input
matInput
readonly
[required]="!editMode"
formControlName="FILE"
(click)="onImageFileClick()"
class="input-file"
/>
@if (isFolder) {
<mat-icon matSuffix (click)="onClickItem()" style="cursor: pointer">folder</mat-icon>
} @else {
<mat-icon matSuffix (click)="onDeleteItem()" style="cursor: pointer">clear</mat-icon>
}
</mat-form-field>
Reproduction
StackBlitz link:
Steps to reproduce:
Expected Behavior
mat-icon should be on the right side of mat-form-field.
Actual Behavior
mat-icon for mat-form-field shows below mat-form-field component.
Environment
- Angular: 17.0.2
- CDK/Material: 17.0.0
- Browser(s): Chrome Version 119.0.6045.160
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Metadata
Metadata
Assignees
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team