Skip to content
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

drag_to is broken in 3.39.0 due to dragenter event is dispatched without coordinates #2662

Open
syakovyn opened this issue Apr 24, 2023 · 1 comment

Comments

@syakovyn
Copy link

syakovyn commented Apr 24, 2023

Meta

Capybara Version: 3.39.0

Expected Behavior

The dispatched dragenter event contains the coordinates of the target.

Actual Behavior

The dispatched dragenter event doesn't contais the coordinates of the target.

Steps to reproduce

Fix of #2576 doesn't include the mouse pointer coordinates causing issues in JS code listening to dragenter event and relying on those coordinates.

@syakovyn syakovyn changed the title drag_to is broken in 3.9.0 due to dragenter event is dispatched without coordinates drag_to is broken in 3.39.0 due to dragenter event is dispatched without coordinates Apr 24, 2023
@ouranos
Copy link

ouranos commented Jul 11, 2024

We have the same issue after upgrading to capybara 3.40

Our test uses drag_to to drag an element to the first position in a grid. Starting with capybara 3.39, the element is now dragged to the second position.

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

No branches or pull requests

2 participants