Skip to content

Commit

Permalink
fix(tooltip): fix isOpen and undefined containerClass [fixes #2257]
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSurmay committed Jul 25, 2017
1 parent 64793c2 commit 6b421e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tooltip/tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export class TooltipDirective implements OnInit, OnDestroy {
public get isOpen(): boolean { return this._tooltip.isShown; }

public set isOpen(value: boolean) {
if (value) {this.show();} else {this.hide();}
setTimeout(() => {
if (value) {this.show();} else {this.hide();}
}, 0);
}

/**
Expand All @@ -53,7 +55,7 @@ export class TooltipDirective implements OnInit, OnDestroy {
/**
* Css class for tooltip container
*/
@Input() public containerClass: string;
@Input() public containerClass: string = '';

/**
* Emits an event when the tooltip is shown
Expand Down

0 comments on commit 6b421e1

Please sign in to comment.