From bdb20ab244ba690bb32ce7002d3920c5ee6fba7f Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 21 Aug 2024 15:22:15 +0300 Subject: [PATCH] Fixed #6262 --- packages/primevue/src/drawer/BaseDrawer.vue | 9 --------- packages/primevue/src/drawer/Drawer.vue | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/primevue/src/drawer/BaseDrawer.vue b/packages/primevue/src/drawer/BaseDrawer.vue index b4cb323ad..64b878a41 100644 --- a/packages/primevue/src/drawer/BaseDrawer.vue +++ b/packages/primevue/src/drawer/BaseDrawer.vue @@ -59,15 +59,6 @@ export default { $pcDrawer: this, $parentInstance: this }; - }, - watch: { - dismissable(newValue) { - if (newValue) { - this.bindOutsideClickListener(); - } else { - this.unbindOutsideClickListener(); - } - } } }; diff --git a/packages/primevue/src/drawer/Drawer.vue b/packages/primevue/src/drawer/Drawer.vue index acd1aa592..96f567981 100755 --- a/packages/primevue/src/drawer/Drawer.vue +++ b/packages/primevue/src/drawer/Drawer.vue @@ -68,6 +68,15 @@ export default { closeButton: null, outsideClickListener: null, documentKeydownListener: null, + watch: { + dismissable(newValue) { + if (newValue) { + this.bindOutsideClickListener(); + } else { + this.unbindOutsideClickListener(); + } + } + }, updated() { if (this.visible) { this.containerVisible = this.visible;