added dismissable watch

pull/2541/head
Shay Yzhakov 2022-05-15 12:38:10 +03:00
parent cdb1449f44
commit 0b511f8000
1 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,15 @@ export default {
visible: false visible: false
} }
}, },
watch: {
dismissable(newValue) {
if (newValue) {
this.bindOutsideClickListener();
} else {
this.unbindOutsideClickListener();
}
}
},
selfClick: false, selfClick: false,
target: null, target: null,
eventTarget: null, eventTarget: null,