chore(tooltip): regression when trimming non-string messages (#7024)

Fixes a regression from f6d1078e54.
This commit is contained in:
Kristiyan Kostadinov
2017-09-12 22:06:08 +02:00
committed by mmalerba
parent acbb1d42f3
commit 0257f4824b
+1 -1
View File
@@ -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);
}