ConfirmationService: Cannot show multiple dialogs in quick succession #15916
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Calling confirmationService.confirm(...) twice in quick succession will cause the second dialog to not be opened at all or immediately close itself. Only a generous setTimeout of 100ms to 500ms depending on browser speed will fix this.
Environment
Reproducer
https://stackblitz.com/edit/xcaun3?file=src%2Fapp%2Fconfirm-dialog-basic-demo.ts
Angular version
17+
PrimeNG version
17.18.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.6.1
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
There should be no time delay needed between two calls of confirmationService.confirm(...)
The text was updated successfully, but these errors were encountered: