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

Add dragenter event and test to drag_to #2606

Merged
merged 1 commit into from
Dec 26, 2022

Conversation

matt17r
Copy link
Contributor

@matt17r matt17r commented Oct 28, 2022

Fire a dragenter event before the two dragover events.

The spec requires a dragenter event to be fired first:

To accept a drop, the drop target has to listen to at least three events. First, the dragenter event, which is used to determine whether or not the drop target is to accept the drop.

Addresses #2576

This is my first code contribution and I'm much more comfortable in Ruby than JavaScript so please let me know if I've done this badly or misunderstood the JavaScript side of things!

P.S. This is basically a duplicate of #2601 but rebased against latest master. I accidentally closed the other PR by deleting my branch before it had been merged. Hacktoberfest is teaching me a lot about Git and Github. Sorry for the notification spam 😔

@twalpole
Copy link
Member

Sorry for the delay, this will be looked at/considered this coming weekend

@twalpole twalpole merged commit c85d0d6 into teamcapybara:master Dec 26, 2022
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.

2 participants