Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 827
Inversion Avatar asked Oct 25 '25 09:10

Inversion


1 Answers

Looks like it's a longstanding bug in webkit: https://bugs.webkit.org/show_bug.cgi?id=66547

like image 182
Nate Whittaker Avatar answered Oct 26 '25 23:10

Nate Whittaker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!