diff --git a/client/components/modals/Modal.vue b/client/components/modals/Modal.vue index 211da673..5ba357c6 100644 --- a/client/components/modals/Modal.vue +++ b/client/components/modals/Modal.vue @@ -6,7 +6,7 @@ close -
+
@@ -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