Skip to content

Events should also return the element #105

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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