From bb889406afb3e0d23eac5ecf1ae1afdaee2f2746 Mon Sep 17 00:00:00 2001 From: Fabien VINCENT Date: Fri, 23 Aug 2024 22:28:18 +0200 Subject: [PATCH] Fix issue #6262 - Click outside only when not modal for v4.0.5 --- packages/primevue/src/drawer/Drawer.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/drawer/Drawer.vue b/packages/primevue/src/drawer/Drawer.vue index 96f567981..d6da51643 100755 --- a/packages/primevue/src/drawer/Drawer.vue +++ b/packages/primevue/src/drawer/Drawer.vue @@ -71,9 +71,9 @@ export default { watch: { dismissable(newValue) { if (newValue) { - this.bindOutsideClickListener(); + this.enableDocumentSettings(); } else { - this.unbindOutsideClickListener(); + this.disableDocumentSettings(); } } },