@@ -49,7 +49,8 @@ export default {
data() {
return {
el: null,
- content: null
+ content: null,
+ preventClickoutside: false
}
},
watch: {
@@ -82,10 +83,20 @@ export default {
}
},
methods: {
+ mousedownModal() {
+ this.preventClickoutside = true
+ },
+ mouseupModal() {
+ this.preventClickoutside = false
+ },
clickClose() {
this.show = false
},
clickBg(ev) {
+ if (this.preventClickoutside) {
+ this.preventClickoutside = false
+ return
+ }
if (this.processing && this.persistent) return
if (ev.srcElement.classList.contains('modal-bg')) {
this.show = false