From f74c1fb69ba2e0fddbe53dc57358f6430da4fe8e Mon Sep 17 00:00:00 2001 From: Lasse Jensen Date: Wed, 26 Oct 2016 15:07:45 +0200 Subject: [PATCH] Fixed modal onShow (#1155) Fixed onShown event on modals so that the event not will be fired 2 times anymore --- components/modal/modal.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/components/modal/modal.component.ts b/components/modal/modal.component.ts index c9965f97e7..94c899b5dc 100644 --- a/components/modal/modal.component.ts +++ b/components/modal/modal.component.ts @@ -201,7 +201,6 @@ export class ModalDirective implements AfterViewInit, OnDestroy { // this._addClassIn = true; this.renderer.setElementClass(this.element.nativeElement, ClassName.IN, true); - this.onShown.emit(this); const transitionComplete = () => { if (this._config.focus) { this.element.nativeElement.focus();