Fix mail tree drop hover class sometimes not being removed from hovered once nodes

This commit is contained in:
Hadi Nategh 2022-09-15 12:40:49 +02:00
parent 4f5c259078
commit 5e7a6cfef7

View File

@ -461,7 +461,7 @@ export function egwDropActionImplementation()
}
if (!self.getTheDraggedDOM()) return ;
const data = {
const data = {
event: event,
ui: self.getTheDraggedData()
};
@ -487,6 +487,9 @@ export function egwDropActionImplementation()
_aoi.triggerEvent(EGW_AI_DRAG_ENTER, data);
// 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')})
this.classList.add('drop-hover');
// stop the event from being fired for its children