mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-01 03:29:05 +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 dragend = function(event){
|
||||||
const helper = document.querySelector('.et2_egw_action_ddHelper');
|
const helper = document.querySelector('.et2_egw_action_ddHelper');
|
||||||
if (helper) helper.remove();
|
if (helper) helper.remove();
|
||||||
|
const draggable = document.querySelector('.drag--moving');
|
||||||
|
if (draggable) draggable.classList.remove('drag--moving');
|
||||||
};
|
};
|
||||||
|
|
||||||
// Drag Event listeners
|
// Drag Event listeners
|
||||||
@ -592,7 +594,7 @@ export function egwDropActionImplementation()
|
|||||||
|
|
||||||
// clean up the helper dom
|
// clean up the helper dom
|
||||||
if (helper) helper.remove();
|
if (helper) helper.remove();
|
||||||
|
self.getTheDraggedDOM().classList.remove('drag--moving');
|
||||||
};
|
};
|
||||||
|
|
||||||
const dragleave = function (event) {
|
const dragleave = function (event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user