Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Swapping elements instead of sorting #449

Open
@MadJlzz

Description

@MadJlzz

Hello,

I've been working for a while on this case and it has just been giving me hardcore headaches so here is what I just founded.

I've got some objects in my list (looking like this) :

image

Here is the content binded with ng-model :

image

The thing is that when I am trying to swap the card 2 with the card 0, the result I see is not what I am expecting :

image

In fact, we'll see that card 2 is nicely ordered but we see that card 0 is taking the place of card 1 in the list instead of picking old's card 2 place (at the end).

So here's my question : is that the normal behaviour or is it a real ordering problem ?

Sorry for my poor English, I hope i was clear.

EDIT : After doing some more research and checking in codepens, I think it's the right behaviour. Is it possible to add an option to swap items in the sortableOption instead of reordering them ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions