Skip to content

Commit 04668e0

Browse files
authored
docs: use icon button in input clear example (#22732)
Remove the extraneous `mat-button` directive.
1 parent 25665dc commit 04668e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<mat-form-field class="example-form-field">
22
<mat-label>Clearable input</mat-label>
33
<input matInput type="text" [(ngModel)]="value">
4-
<button mat-button *ngIf="value" matSuffix mat-icon-button aria-label="Clear" (click)="value=''">
4+
<button *ngIf="value" matSuffix mat-icon-button aria-label="Clear" (click)="value=''">
55
<mat-icon>close</mat-icon>
66
</button>
77
</mat-form-field>

0 commit comments

Comments
 (0)