marekrozmus / react-swipeable-list

Swipeable list component for React supporting several behaviours (e.g. iOS)
https://marekrozmus.github.io/react-swipeable-list/
MIT License
114 stars 20 forks source link

Several actions open if opened after deletion #53

Closed Starly26 closed 1 year ago

Starly26 commented 1 year ago

If I open a swipe after deleting a swipeItem using a destructive callback, then when I open the swipe next to it, several actions open, see video. I think the problem is in https://github.com/marekrozmus/react-swipeable-list/pull/38 since the ID is tied to the index

https://github.com/marekrozmus/react-swipeable-list/assets/86514705/5ede14e0-2d7d-424a-9380-958412b8d8c2

marekrozmus commented 1 year ago

@all-contributors please add @Starly26 for bug

allcontributors[bot] commented 1 year ago

@marekrozmus

I've put up a pull request to add @Starly26! :tada:

marekrozmus commented 1 year ago

@Starly26 Fixed in 1.9.3