mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(tooltip): regression when trimming non-string messages (#7024)
Fixes a regression from f6d1078e54.
This commit is contained in:
committed by
mmalerba
parent
acbb1d42f3
commit
0257f4824b
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user