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,
$parentInstance: this
};
},
watch: {
dismissable(newValue) {
if (newValue) {
this.bindOutsideClickListener();
} else {
this.unbindOutsideClickListener();
}
}
}
};
</script>

View File

@ -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;