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

Sibling argument in "accepts" callback points to wrong node when dragging upward #673

Open
danny-andrews opened this issue Feb 13, 2021 · 0 comments

Comments

@danny-andrews
Copy link

The sibling argument in the "accepts" callback points to the dragged node, not the sibling.

Steps to reproduce

  1. Go to https://codepen.io/danny-andrews/pen/oNYBqoL.
  2. Drag "Two" up to the top of the list.
  3. Open console.

Expected
"One" is printed to the console, as it is the new sibling.

Actual
"Two" is printed to the console.

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

1 participant