'DragEvent.relatedTarget returns null in Safari
If I try to check e.relatedTarget for dragleave event, in Safari (v14.1.2) it is always null.
You can see it here (add console.log) — https://jsfiddle.net/zfnj5rv4
In Chrome it works fine.
This page says that Safari supports MouseEvent.relatedTarget.
This page says that DragEvent inherits properties from MouseEvent and Event.
Is it broken or never worked?
Solution 1:[1]
Looks like it's a longstanding bug in webkit: https://bugs.webkit.org/show_bug.cgi?id=66547
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Nate Whittaker |
