-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dndDragover Event Not Working Consistently in Firefox #101
Comments
Hi, I have a similar issue, so I decided not to create a new one. In my case, I'm not using .dndDragover, but dndplaceholderref. Desktop (please complete the following information):
In my case, I have a 15x15 game board that I'm trying to drop element to. I have a simple dndPlaceholderRef like this on every square:
I've made a small gif of the issue: Also, here in the dev tools, you can see that the element with dndPlaceholderRef was not removed from the DOM: Is there something that I'm doing wrong? If so, how could I resolve it? @keenan-paige sorry for hijacking this, but I feel like the issue is similar enough, and might even be the same issue so additional information I've provided could help to find the cause. By the way, maybe you've found a way to resolve this on your side? Thank you. |
@todamach They you for providing the additional use case and context - it does seem like a similar issue to me. We have not found a way around this via the library on our end yet. |
@todamach Thx for reporting and putting in the effort! I'm not too sure your issue is related. Can you try to remove the *ngIf from the placeholder and see if that has an effect? Currently I think this issue may be reduced by having more cleanup logic but I'm afraid there is no 100% fix when the underlying event that is used for cleaning up the dragover is not emitted by the browser. |
|
Describe the bug
The
.dndDragover
class is not removing 100% of the time on drag leave in Firefox browser when using thedndDragover
event. Note: This doesn't happen every time, but it can typically be reproduced after some amount of dragging a drag field over a drop zone in Firefox.Steps to reproduce the behavior:
dndDragover
class is not removed even when dragging over drop zone has stopped. If not noticing issue, repeat steps 2 - 3 until issue reproduces.Expected behavior
The
dndDragover
class should remove on drag leave consistently in Firefox.Desktop (please complete the following information):
Additional context
As mentioned, this issue is not reproducible 100% of the time. I think in normal circumstances, it does remove the class as expected. However, occasionally the class does persist even when the drop zone is no longer being dragged over. We have a work around to call an additional
dragleave
event that serves to remove the class when dragging is complete.The text was updated successfully, but these errors were encountered: