Skip to content

Conversation

@ovdsteen
Copy link

@ovdsteen ovdsteen commented Jul 11, 2024

We can not use event.relatedTarget to check if the native element still contains the dragged element because of a Safari bug with NULL as event.relatedTarget value on the dragleave event.

See bug on StackOverflow

The solution is to use a counter instead of the related target that decrease on drag leave and increase on drag enter.

The flickering of the elements can be tested with Safari on the demo application (see list and typed)

Related to #155

We can not use "event.relatedTarget" to check if the native element still
contains the dragged element because of a Safari bug with "NULL" as
"event.relatedTarget" value on the dragleave event.

See: https://stackoverflow.com/questions/68745781/dragevent-relatedtarget-returns-null-in-safari

The solution is to use a counter instead of the related target that decrease
on drag leave and increase on drag enter.
@Rockstar311
Copy link

Hi, it would be great to manage this fix as soon as possible

@instantprivet
Copy link

Hi @ovdsteen Do you know if this fix will be available soon? Thank you!

@ovdsteen
Copy link
Author

ovdsteen commented Nov 6, 2024

Hi @ovdsteen Do you know if this fix will be available soon? Thank you!

No unfortunately. I do not have the rights to merge this PR :(

@Kawan-J
Copy link

Kawan-J commented Jul 18, 2025

@reppners @ChristofFritz Can you guys please look into merging this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants