Skip to content

Commit

Permalink
fix(overlay): wrap class addition in RAF #9882
Browse files Browse the repository at this point in the history
  • Loading branch information
PlamenaMiteva committed Oct 7, 2021
1 parent 74d0248 commit 68ad335
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,9 @@ export class IgxOverlayService implements OnDestroy {
// to eliminate flickering show the element just before animation start
info.wrapperElement.style.visibility = '';
info.visible = true;
this.addModalClasses(info);
requestAnimationFrame(() => {
this.addModalClasses(info);
});
info.openAnimationPlayer.play();
}

Expand Down

0 comments on commit 68ad335

Please sign in to comment.