Clash storing event listeners for 'dragenter' #515
Labels
bug
help wanted
info needed
More info needs to be provided to discuss/solve the issue
PR needed
This issue requires a PR to be fixed. If you have time to help, please send a PR.
Two listeners are added for 'dragenter'.
One here
and the second here
The callback is stored using the event name
which causes one to overwrite the other.
Now only one callback can be retrieved for removal
A fix could be to remove this line altogether.
Dragging would still be caught by the 'dragover' event listener in the adjacent line. Is there a reason why we need both 'dragover' and 'dragenter'?
See issue #512 for background
The text was updated successfully, but these errors were encountered: