Skip to content

Events should also return the element #105

Open
@MickL

Description

@MickL

Hello,

within the events I need to know the id of my element, but I cant access the element:

<Sortable
  :list="elements"
  item-key="id"
  @end="(event: Sortable.SortableEvent) => changeOrder(element.id, event.oldIndex, event.newIndex)"
>
...

This is because I need to know which item exactly has changed because possibly two items can have the same order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions