mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
Cleanup draggable dom after drop/dragend events
This commit is contained in:
parent
e9c9fb77ea
commit
b3c2dcc90b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user