You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110
Description
I've been working with the ConfirmationService / ConfirmDialog components using the this.$confirm.require(...) API, and I've come across an issue with closing and re-opening dialogs. After require(...) is called for the first time, the confirmation dialog appears as expected (correct behaviour, etc.) however after closing the dialog via the close-icon at the top right of the dialog, the dialog closes (as expected), however subsequent require(...) calls do not re-open the dialog.
After looking into the source behind the ConfirmDialog component, I can see that a closeDialog() method is called upon clicking the Dialog component. This method contains an if statement which basically turns off the subscribers to the event bus if the close-icon button is the target - this is the code which is causing the issue I'm experiencing. Is this intended behaviour?
Environment
Vue version: 2.6.12
PrimeVue version: 2.5.1
The text was updated successfully, but these errors were encountered:
ollyrowe
changed the title
Confirmation dialog not reopening
ConfirmDialog not reopening
Oct 18, 2021
Description
I've been working with the
ConfirmationService
/ConfirmDialog
components using thethis.$confirm.require(...)
API, and I've come across an issue with closing and re-opening dialogs. Afterrequire(...)
is called for the first time, the confirmation dialog appears as expected (correct behaviour, etc.) however after closing the dialog via the close-icon at the top right of the dialog, the dialog closes (as expected), however subsequentrequire(...)
calls do not re-open the dialog.After looking into the source behind the
ConfirmDialog
component, I can see that acloseDialog()
method is called upon clicking theDialog
component. This method contains anif
statement which basically turns off the subscribers to the event bus if the close-icon button is the target - this is the code which is causing the issue I'm experiencing. Is this intended behaviour?Environment
The text was updated successfully, but these errors were encountered: