You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See failed test: reproducer.spec.ts › should receive 'dragleave' event when canceling drag operation
Expected behavior
Canceling a drag operation should behave like canceling a drag operation in the browser, i.e., trigger a dragleave event on the drop target.
Actual behavior
Canceling a drag operation in Playwright does not trigger a dragleave event on the drop target. Only the dragend event is fired on the element where the drag operation was started.
The dragleave event you mentioned occurs when the drag image is dragged out of the drag source's bounding box while being dragged toward the drop target, before the cancelation.
I am referring to the (missing) dragleave event on the drop target when canceling the drag operation while dragging over the drop target.
When you drag the drag image over the drop target, a dragenter event is fired on the drop target, followed by dragover events. If the drag operation is then canceled by pressing escape, a dragleave event should be fired on the drop target. Canceling the drag operation in browsers fires that event, but it is not fired when canceling the drag operation in Playwright.
Version
1.49.0
Steps to reproduce
reproducer.spec.ts › should receive 'dragleave' event when canceling drag operation
Expected behavior
Canceling a drag operation should behave like canceling a drag operation in the browser, i.e., trigger a
dragleave
event on the drop target.Actual behavior
Canceling a drag operation in Playwright does not trigger a
dragleave
event on the drop target. Only thedragend
event is fired on the element where the drag operation was started.Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: