Merge pull request #2541 from shayyzhakov/overlay-panel-dynamic-dismissable

OverlayPanel dynamic dismissable control
pull/2742/head
Tuğçe Küçükoğlu 2022-07-01 10:03:45 +03:00 committed by GitHub
commit f37074fbb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -58,6 +58,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,