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

Nested lists: Cannot drag element back to parent list when sort = false [bug] #2025

Closed
mig8447 opened this issue Apr 3, 2021 · 1 comment
Labels

Comments

@mig8447
Copy link

mig8447 commented Apr 3, 2021

Describe the bug

When applied to nested lists and setting the sort option to false, an item dragged from the root list to a children cannot be dragged back onto the root list before dropping it (If I regret moving the item the only way to move it back to the parent is by dropping it and dragging it back)

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://jsbin.com/yemafupaxi/1/edit?js,output
  2. Drag element b to the sublist of element a
  3. Without dropping the element, try to drag it back to the parent list
  4. See error

Expected behavior

I should be able to return the element back to its place before dropping it when the lists are not sortable

Information

Versions - Look in your package.json for this information:
sortablejs = ^1.13.0

Reproduction
https://jsbin.com/yemafupaxi/1/edit?js,output

@owen-m1
Copy link
Member

owen-m1 commented May 8, 2021

Fixed in commit 0a1bab7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants