ConfirmDialog: No way to distinguish reject and close button action being fired #17512
Open
1 of 4 tasks
Labels
Resolution: Help Wanted
Issue or pull request requires extra help and feedback
Milestone
Describe the bug
I've just updated to primeNG 19 from 17. I've noticed that close method from confirmDialog is not being fired since confirmDialog uses dialog internally. And that is why now there is no way to distinguish between reject and close button being fired. It was working ok in primeNG 17 version.
As a reproducer You can check showcase and basic confirmDialog on https://primeng.org/confirmdialog You can see subscribing to reject never fires with close event. Some time ago it was possible like that: #3428 (comment)
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://primeng.org/confirmdialog
Environment
N/A
Angular version
19.1.3
PrimeNG version
v19
Node version
20.18.1
Browser(s)
All
Steps to reproduce the behavior
Expected behavior
I expect to fire reject event with ConfirmEventType.CANCEL as close method in confirmdialog.ts states
The text was updated successfully, but these errors were encountered: