Skip to content

Commit

Permalink
fix: 🐛 isVisible should run inside the zone
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Feb 4, 2022
1 parent 1ab35dc commit 96128c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions projects/ngneat/helipopper/src/lib/tippy.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ export class TippyDirective implements OnChanges, AfterViewInit, OnDestroy, OnIn
},
onHidden: instance => {
this.destroyView();
this.isVisible = false;
this.visible.next(false);
this.zone.run(() => {
this.isVisible = false;
this.visible.next(false);
});
this.globalConfig.onHidden?.(instance);
}
});
Expand Down

0 comments on commit 96128c2

Please sign in to comment.