pull/6161/head^2
tugcekucukoglu 2024-08-21 15:22:15 +03:00
parent 1b35beaa9c
commit bdb20ab244
2 changed files with 9 additions and 9 deletions

View File

@ -59,15 +59,6 @@ export default {
$pcDrawer: this, $pcDrawer: this,
$parentInstance: this $parentInstance: this
}; };
},
watch: {
dismissable(newValue) {
if (newValue) {
this.bindOutsideClickListener();
} else {
this.unbindOutsideClickListener();
}
}
} }
}; };
</script> </script>

View File

@ -68,6 +68,15 @@ export default {
closeButton: null, closeButton: null,
outsideClickListener: null, outsideClickListener: null,
documentKeydownListener: null, documentKeydownListener: null,
watch: {
dismissable(newValue) {
if (newValue) {
this.bindOutsideClickListener();
} else {
this.unbindOutsideClickListener();
}
}
},
updated() { updated() {
if (this.visible) { if (this.visible) {
this.containerVisible = this.visible; this.containerVisible = this.visible;