From 89c988bf5f1a733af1deadc76e1050191d92ef97 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 15 Dec 2023 23:11:10 +0000 Subject: [PATCH] case 4565 --- ayanova/src/components/attachment-control.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ayanova/src/components/attachment-control.vue b/ayanova/src/components/attachment-control.vue index b3b04641..2147910b 100644 --- a/ayanova/src/components/attachment-control.vue +++ b/ayanova/src/components/attachment-control.vue @@ -358,6 +358,9 @@ export default { } }, onDrop(ev) { + if (!dropDiv) { + dropDiv = document.getElementById("dropDiv"); + } dropDiv.style.border = "none"; dropDiv = null; //handle file drop @@ -375,6 +378,9 @@ export default { dropDiv.style.border = "4px dashed #00ff00"; }, onDragEnd() { + if (!dropDiv) { + dropDiv = document.getElementById("dropDiv"); + } dropDiv.style.border = "none"; dropDiv = null; }