This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 56405f58ff67649a02a7477c2c5113e3c4b0b639
Author: Dan Klco <[email protected]>
AuthorDate: Mon Mar 29 23:02:38 2021 -0400

    Minor - fixing UI where upload flashed when file was dragged over top
---
 ui/src/main/frontend/js/cms.fields.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ui/src/main/frontend/js/cms.fields.js 
b/ui/src/main/frontend/js/cms.fields.js
index a76e429..5ff4321 100644
--- a/ui/src/main/frontend/js/cms.fields.js
+++ b/ui/src/main/frontend/js/cms.fields.js
@@ -90,7 +90,9 @@ rava.bind('.file', {
       }, false);
       field.addEventListener('dragleave', (event) => {
         event.preventDefault();
-        field.classList.remove('is-primary');
+        if(!field.contains(event.fromElement)){
+          field.classList.remove('is-primary');
+        }
       }, false);
       field.addEventListener('drop', (event) => {
         event.preventDefault();

Reply via email to