Skip to content

Model on the event gets stuck to item moved to/from nested list #46

Open
@filipkis

Description

@filipkis

I've discovered another bug with the case of nested list.

If we consider the list like this

  • item 1
    • subitem 1
  • item 2
  • item 3

As long as you move items in the main list all will be fine. However, once you move item (e.g. item 2) to nested list all following moves will have event.model set to item 2. In other words, if you then try to move item 3 above item 1 the move will succeed, however in callbacks (e.g. onEnd) the event.model will be wrong.

The same is true if the first action is moving an item from from the nested list (e.g. subitem 1). All following moves will have subitem 1 set as the model.

Here's minimal codepen showing the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions