forked from extern/egroupware
Fix mail tree drop hover class sometimes not being removed from hovered once nodes
This commit is contained in:
parent
4f5c259078
commit
5e7a6cfef7
@ -461,7 +461,7 @@ export function egwDropActionImplementation()
|
|||||||
}
|
}
|
||||||
if (!self.getTheDraggedDOM()) return ;
|
if (!self.getTheDraggedDOM()) return ;
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
event: event,
|
event: event,
|
||||||
ui: self.getTheDraggedData()
|
ui: self.getTheDraggedData()
|
||||||
};
|
};
|
||||||
@ -487,6 +487,9 @@ export function egwDropActionImplementation()
|
|||||||
|
|
||||||
_aoi.triggerEvent(EGW_AI_DRAG_ENTER, data);
|
_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');
|
this.classList.add('drop-hover');
|
||||||
|
|
||||||
// stop the event from being fired for its children
|
// stop the event from being fired for its children
|
||||||
|
Loading…
Reference in New Issue
Block a user