Skip to content

Wrong newIndex when in nested dom-repeat list #6

Description

@JaySunSyn

Sometimes when dragging items down, the event shows a newIndex of 0 which is the wrong index.
It comes most often when dragging the first element to the button of the same group.

<template is="dom-repeat" id="camerasList" items="{{cameras}}">
  <!-- groups -->
  <p>{{item.group.name}}</p>
  <sortable-list id="{{item.group.id}}" group="grouped" animation="150">

    <template is="dom-repeat" items="{{item.cams}}">
      <!-- cams -->
      <div id="{{item.id}}">{{item.name}}</div>
    </template>

  </sortable-list>
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions