From 081af5ff0be408f153da516377835b237b0e3b86 Mon Sep 17 00:00:00 2001 From: plamenamiteva Date: Mon, 4 Oct 2021 12:29:43 +0300 Subject: [PATCH] fix(overlay): move addModalClasses to show method #9882 --- projects/igniteui-angular/src/lib/services/overlay/overlay.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/igniteui-angular/src/lib/services/overlay/overlay.ts b/projects/igniteui-angular/src/lib/services/overlay/overlay.ts index 36b05b656d6..b9b0cd2f548 100644 --- a/projects/igniteui-angular/src/lib/services/overlay/overlay.ts +++ b/projects/igniteui-angular/src/lib/services/overlay/overlay.ts @@ -345,7 +345,6 @@ export class IgxOverlayService implements OnDestroy { this.addOutsideClickListener(info); this.addResizeHandler(); this.addCloseOnEscapeListener(info); - this.addModalClasses(info); this.buildAnimationPlayers(info); return info.id; } @@ -412,6 +411,7 @@ export class IgxOverlayService implements OnDestroy { document, true, info.settings.target); + this.addModalClasses(info); if (info.settings.positionStrategy.settings.openAnimation) { this.buildAnimationPlayers(info); this.playOpenAnimation(info);