Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu authored and LeaderbotX400 committed Aug 29, 2024
1 parent c4aaf4b commit 336c058
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/primevue/src/drawer/BaseDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ export default {
$pcDrawer: this,
$parentInstance: this
};
},
watch: {
dismissable(newValue) {
if (newValue) {
this.bindOutsideClickListener();
} else {
this.unbindOutsideClickListener();
}
}
}
};
</script>
9 changes: 9 additions & 0 deletions packages/primevue/src/drawer/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 336c058

Please sign in to comment.