Skip to content

Commit

Permalink
Fixed #9732 - DynamicDialogRef - onClose Observable never completes
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Jul 26, 2023
1 parent 1348365 commit f36121b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/components/dynamicdialog/dynamicdialog-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export class DynamicDialogRef {
*/
close(result?: any) {
this._onClose.next(result);

setTimeout(() => {
this._onClose.complete();
}, 1000)
}
/**
* Destroys the dialog instance.
Expand Down

0 comments on commit f36121b

Please sign in to comment.