File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
+ ChangeDetectorRef ,
2
3
ComponentRef ,
3
4
Directive ,
4
5
HostListener ,
@@ -39,15 +40,18 @@ export class TooltipDirective {
39
40
public viewContainerRef : ViewContainerRef ;
40
41
public componentsHelper : ComponentsHelper ;
41
42
43
+ private changeDetectorRef : ChangeDetectorRef ;
42
44
private visible : boolean = false ;
43
45
private tooltip : ComponentRef < any > ;
44
46
45
47
private delayTimeoutId : number ;
46
48
47
49
public constructor ( viewContainerRef : ViewContainerRef ,
48
- componentsHelper : ComponentsHelper ) {
50
+ componentsHelper : ComponentsHelper ,
51
+ changeDetectorRef : ChangeDetectorRef ) {
49
52
this . viewContainerRef = viewContainerRef ;
50
53
this . componentsHelper = componentsHelper ;
54
+ this . changeDetectorRef = changeDetectorRef ;
51
55
}
52
56
53
57
// todo: filter triggers
@@ -82,6 +86,7 @@ export class TooltipDirective {
82
86
. appendNextToLocation ( TooltipContainerComponent , this . viewContainerRef , binding ) ;
83
87
}
84
88
89
+ this . changeDetectorRef . markForCheck ( ) ;
85
90
this . triggerStateChanged ( ) ;
86
91
} ;
87
92
You can’t perform that action at this time.
0 commit comments