Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamicDialogRef - onClose Observable never completes #9732

Closed
kali-dali opened this issue Jan 8, 2021 · 5 comments
Closed

DynamicDialogRef - onClose Observable never completes #9732

kali-dali opened this issue Jan 8, 2021 · 5 comments
Assignees
Labels
LTS-FIXED-14.2.10 LTS-FIXED-15.4.7 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@kali-dali
Copy link

kali-dali commented Jan 8, 2021

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
The onClose Observable in the DynamicDialogRef never completes. This is an issue, because other functionality, such as the forkJoin operator of the rxjs library depends on Observables completing properly, not just emitting events.
This issue applies to all dialog components / services which provide Observables to listen for events, e.g. ConfirmDialog, Dialog, ConfirmationService, etc.

Here is an example case:
https://stackblitz.com/edit/dynamic-dialog-ref-onclose-not-completing?file=src/app/app.component.html

Current behavior
onClose Observable never completes when DynamicDialog closes.

Expected behavior
onClose Observable completes when DynamicDialog closes.

What is the motivation / use case for changing the behavior?
Provide better integration into rxjs library.

Please tell us about your environment:
OS: Windows 10
Browser: Google Chrome
Angular version: 11.0.0
PrimeNG version: 11.0.0

@yigitfindikli yigitfindikli added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jan 8, 2021
@Emkacf
Copy link

Emkacf commented Jul 19, 2021

I also observed the same issue. Will someone take care of that?

@sagar-varude
Copy link

same issue with this technology stack.
OS: Windows 10
Browser: Google Chrome
Angular version: 11.0.0
PrimeNG version: 11.0.0

@clivebor
Copy link

I also encountered the same issue, found a work around to take(1) and then it completes:

ref.onClose.pipe(take(1)).subscribe(...)

@mertsincan
Copy link
Member

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap?
Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

@codepearlex
Copy link

codepearlex commented Jan 19, 2023

@mertsincan mertsincan reopened this Jan 19, 2023
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 19, 2023
@cetincakiroglu cetincakiroglu added this to the 15.1.1 milestone Jan 19, 2023
@cetincakiroglu cetincakiroglu self-assigned this Jan 19, 2023
@cetincakiroglu cetincakiroglu modified the milestones: 15.1.1, 15.1.2 Jan 20, 2023
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible Status: Pending Review Issue or pull request is being reviewed by Core Team labels Jan 27, 2023
@cetincakiroglu cetincakiroglu modified the milestones: 15.2.0, 15.Future, 15.2.1 Jan 30, 2023
@cetincakiroglu cetincakiroglu modified the milestones: 15.2.1, 15.Future Mar 15, 2023
@cetincakiroglu cetincakiroglu modified the milestones: 15.Future, 15.3.1 Mar 31, 2023
@cetincakiroglu cetincakiroglu modified the milestones: 15.4.0, 15.Future, 15.4.1 Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-FIXED-14.2.10 LTS-FIXED-15.4.7 Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

9 participants