Skip to content

Incorrect order after adding an element in array #254

Open
@Pacofication

Description

@Pacofication

I'm having an issue with adding an element to an array after reordering elements.
The element seems to be added in semi-random place in the UI, but in the correct position within the array.

I have a small demo with a similar use case : https://stackblitz.com/edit/angular-ivy-jvice4
To reproduce the problem

  • Drag and Drop the second element over the third
  • Drag and Drop the third element over the second
  • Click the Add Elem button

The order displayed will be 1,4,2,3 instead of 1,2,3,4
Clicking the the test button will display the array in the console, which is in the proper order.

Am I using the library wrong?
Or is the issue with the library?

Thank you.

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