We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acbb1d4 commit 0257f48Copy full SHA for 0257f48
src/lib/tooltip/tooltip.ts
@@ -150,7 +150,7 @@ export class MdTooltip implements OnDestroy {
150
this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this._message);
151
152
// If the message is not a string (e.g. number), convert it to a string and trim it.
153
- this._message = value ? value.trim() : '';
+ this._message = value != null ? `${value}`.trim() : '';
154
this._updateTooltipMessage();
155
this._ariaDescriber.describe(this._elementRef.nativeElement, this.message);
156
}
0 commit comments