Merge pull request #2541 from shayyzhakov/overlay-panel-dynamic-dismissable
OverlayPanel dynamic dismissable controlpull/2742/head
commit
f37074fbb3
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue