Rafi
Rafi

Reputation: 575

matTooltip is not working consistently when used with mat-icon-button

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>
&nbsp;
<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

Answers (1)

DaggeJ
DaggeJ

Reputation: 2191

You spelled it matToolTip in the case where it's not working. Change the second T to lower case; matTooltip :)

Upvotes: 2

Related Questions