Skip to content

Commit 6222aba

Browse files
committed
fix: only unsubscribe from close when dialog should close
Signed-off-by: Akshat Patel <[email protected]>
1 parent 9dba8c8 commit 6222aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dialog/dialog.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ export class DialogDirective implements OnInit, OnDestroy, OnChanges {
282282
this.isOpen = false;
283283
this.onClose.emit();
284284
this.isOpenChange.emit(false);
285+
subscription.unsubscribe();
285286
}
286-
subscription.unsubscribe();
287287
});
288288

289289
return this.dialogRef;

0 commit comments

Comments
 (0)