ValentinH / react-easy-sort

A React component to sort items in lists or grids
https://ValentinH.github.io/react-easy-sort
MIT License
160 stars 25 forks source link

Trigger sort animation on deletion #22

Closed ru-van-urk closed 2 years ago

ru-van-urk commented 2 years ago

When I delete a item via javascript I would like to transform the array with the nice animations. For example, when I remove index 3, all items with index 4 or higher should move one position.

ValentinH commented 2 years ago

This is not possible currently and I don't see a simple way to add this in the library. It would add too much specific logic for a use case that doesn't fit the original intent of the library in my opinion.