Skip to content

Commit

Permalink
fix(Tooltip): Keep tooltip hidden when the tooltip value is null or e…
Browse files Browse the repository at this point in the history
…mpty
  • Loading branch information
coryshaw1 committed Jun 30, 2016
1 parent 5135c8d commit f0e13f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bundles/fuel-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3966,6 +3966,8 @@ System.registerDynamic("fuel-ui/dist/directives/Tooltip/Tooltip", ["@angular/cor
}
};
Tooltip.prototype.show = function() {
if (!this.text || this.text.length == 0)
return;
this.hide();
this._el.setAttribute("data-hint", this.text);
for (var i = 0; i < this._el.classList.length; i++) {
Expand Down
Loading

0 comments on commit f0e13f5

Please sign in to comment.