Skip to content

Commit

Permalink
chore(tooltip): regression when trimming non-string messages (angular…
Browse files Browse the repository at this point in the history
…#7024)

Fixes a regression from f6d1078.
  • Loading branch information
crisbeto authored and josephperrott committed Sep 15, 2017
1 parent 824691f commit 8076379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class MdTooltip implements OnDestroy {
this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this._message);

// If the message is not a string (e.g. number), convert it to a string and trim it.
this._message = value ? value.trim() : '';
this._message = value != null ? `${value}`.trim() : '';
this._updateTooltipMessage();
this._ariaDescriber.describe(this._elementRef.nativeElement, this.message);
}
Expand Down

0 comments on commit 8076379

Please sign in to comment.