https://jsfiddle.net/7scfk81L/
The structure of my document is as follows:
<div id="container">
<div id="inner"></div>
</div>
I have added listeners for dragEnter
and dragLeave
to the container element.
However, when I drag into the file, it triggers both the container's dragLeaver
event and the 'dragEnter' event as it passes through the child element.
Is there a way to prevent this from happening on the parent element?
I attempted adding pointer-events: none
to the inner
element,
but that solution did not meet my desired outcome.
I would like the child elements to still be interactable.