Cleanup draggable dom after drop/dragend events

This commit is contained in:
Hadi Nategh 2022-05-25 11:16:33 +02:00
parent e9c9fb77ea
commit b3c2dcc90b

View File

@ -290,6 +290,8 @@ export function egwDragActionImplementation()
const dragend = function(event){
const helper = document.querySelector('.et2_egw_action_ddHelper');
if (helper) helper.remove();
const draggable = document.querySelector('.drag--moving');
if (draggable) draggable.classList.remove('drag--moving');
};
// Drag Event listeners
@ -592,7 +594,7 @@ export function egwDropActionImplementation()
// clean up the helper dom
if (helper) helper.remove();
self.getTheDraggedDOM().classList.remove('drag--moving');
};
const dragleave = function (event) {