Reputation: 575
I have two mat-icon-button
buttons and for clear
button matToopTip
is working but not for the done
button. What could be a possible reason for this?
<button *ngIf="field.isEditMode"
type="button"
mat-icon-button
color="primary"
(click)="saveField(field)"
matToolTip="Save changes">
<mat-icon>done</mat-icon>
</button>
<button *ngIf="field.isEditMode"
type="button"
mat-icon-button
color="warn"
(click)="cancelEditMode(field)"
matTooltip="Cancel changes">
<mat-icon>clear</mat-icon>
</button>
Upvotes: 1
Views: 1292
Reputation: 2191
You spelled it matToolTip
in the case where it's not working. Change the second T to lower case; matTooltip
:)
Upvotes: 2