Skip to content

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

@mig8447

Description

@mig8447

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions