Skip to content

Commit 90901de

Browse files
committed
fix: 🐛 isVisible should run inside the zone
1 parent e67cc45 commit 90901de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

projects/ngneat/helipopper/src/lib/tippy.directive.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,10 @@ export class TippyDirective implements OnChanges, AfterViewInit, OnDestroy, OnIn
213213
...onlyTippyProps(this.globalConfig),
214214
...onlyTippyProps(this.props),
215215
onMount: instance => {
216-
this.isVisible = true;
217-
this.visible.next(true);
216+
this.zone.run(() => {
217+
this.isVisible = true;
218+
this.visible.next(true);
219+
});
218220
this.useHostWidth && this.listenToHostResize();
219221
this.globalConfig.onMount?.(instance);
220222
},

0 commit comments

Comments
 (0)