kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
598 stars 146 forks source link

Svelte smooth-dnd #98

Open interk0t opened 8 months ago

interk0t commented 8 months ago

Hello! I understand that at the moment there are no components for Svelte, however, I would be satisfied with using it directly without them, if possible. The problem is that when I change the order of the elements in the array in the onDrop function, in the browser the moved element is returned to its original place (in the console in the array the order of the elements looks correct). And the moved element itself is returned exactly when I update the order of the elements in the array., where could there be an error? Thank you

`

  <div class="box12"  id="boxId">
      {#each included as item }
          <div style="background-color: {item.color}" >{item.title}</div>
      {/each}
  </div>

`