Cleanup hover color after drag action ended

This commit is contained in:
hadi 2023-05-22 11:45:17 +02:00
parent d20a1132e3
commit 58fd61ad31

View File

@ -282,6 +282,8 @@ export function egwDragActionImplementation()
if (helper) helper.remove();
const draggable = document.querySelector('.drag--moving');
if (draggable) draggable.classList.remove('drag--moving');
// cleanup drop hover class from all other DOMs if there's still anything left
Array.from(document.getElementsByClassName('et2dropzone drop-hover')).forEach(_i=>{_i.classList.remove('drop-hover')})
};
// Drag Event listeners