Skip to content

Commit

Permalink
Fixed #1558
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Feb 1, 2017
1 parent 4c97240 commit 665ca5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class Tooltip implements OnDestroy {
container: any;

constructor(public el: ElementRef, public domHandler: DomHandler) {}

@HostListener('mouseenter', ['$event'])
onMouseEnter(e: Event) {
if(this.tooltipEvent === 'hover') {
Expand Down Expand Up @@ -117,7 +117,7 @@ export class Tooltip implements OnDestroy {

let tooltipText = document.createElement('div');
tooltipText.className = 'ui-tooltip-text ui-shadow ui-corner-all';
tooltipText.innerHTML = this.text;
tooltipText.appendChild(document.createTextNode(this.text));

if(this.positionStyle) {
this.container.style.position = this.positionStyle;
Expand Down

0 comments on commit 665ca5e

Please sign in to comment.