From f25924cf5d6dbc97083555884ab8920f96a5a82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20FINDIKLI?= Date: Wed, 25 Nov 2020 15:48:38 +0300 Subject: [PATCH] Fixed #8747 - Dialog.onShow should occur when the animation ends --- src/app/components/dialog/dialog.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index f916abb082a..35d9f142016 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -656,7 +656,6 @@ export class Dialog implements AfterContentInit,OnDestroy { case 'visible': this.container = event.element; this.wrapper = this.container.parentElement; - this.onShow.emit({}); this.appendContainer(); this.moveOnTop(); this.bindGlobalListeners(); @@ -682,6 +681,9 @@ export class Dialog implements AfterContentInit,OnDestroy { this.onContainerDestroy(); this.onHide.emit({}); break; + case 'visible': + this.onShow.emit({}); + break; } }