diff --git a/packages/primevue/src/confirmdialog/ConfirmDialog.vue b/packages/primevue/src/confirmdialog/ConfirmDialog.vue index 821fc65268..b8129873f0 100644 --- a/packages/primevue/src/confirmdialog/ConfirmDialog.vue +++ b/packages/primevue/src/confirmdialog/ConfirmDialog.vue @@ -109,6 +109,7 @@ export default { } this.visible = false; + this.confirmation = null; }, reject() { if (this.confirmation.reject) { @@ -116,6 +117,7 @@ export default { } this.visible = false; + this.confirmation = null; }, onHide() { if (this.confirmation.onHide) { @@ -123,6 +125,7 @@ export default { } this.visible = false; + this.confirmation = null; } }, computed: { diff --git a/packages/primevue/src/confirmpopup/ConfirmPopup.vue b/packages/primevue/src/confirmpopup/ConfirmPopup.vue index 82a78ace60..df15450f40 100644 --- a/packages/primevue/src/confirmpopup/ConfirmPopup.vue +++ b/packages/primevue/src/confirmpopup/ConfirmPopup.vue @@ -143,6 +143,7 @@ export default { } this.visible = false; + this.confirmation = null; }, reject() { if (this.confirmation.reject) { @@ -150,6 +151,7 @@ export default { } this.visible = false; + this.confirmation = null; }, onHide() { if (this.confirmation.onHide) { @@ -157,6 +159,7 @@ export default { } this.visible = false; + this.confirmation = null; }, onAcceptKeydown(event) { if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {