Closed fddayan closed 1 year ago
@fddayan Could you please add some GIF or animation what you actually want to achieve?
@marekrozmus this the behaviour i am facing too.
See below attached gif where i cannot see two action buttons. When I swipe to see the action, the action do not remain, the actions colpast again.
But strange the same code work fine in codesandbox https://codesandbox.io/s/keen-voice-rohu02
I am not sure what do you want to achieve with placing Draggable
as the child of the SwipeableList
.
The SwipeableList
expects to have SwipeableListItem
as a child. It won't work if it will be something else.
So the question is why having Draggable
as a parent for SwipeableListItem
?
@marekrozmus in this comment https://github.com/marekrozmus/react-swipeable-list/issues/29#issuecomment-1442872427 you can see the code sandbox where i provided SwipeableListItem
as child to SwipeableList
. But it still didn’t work.
you can see attached gif in above comment.
@IamAhsanMani I saw that :) but just wondering what is the reason for using the Draggable
inside the list?
@marekrozmus don’t what could be the reason of using Draggable
inside the list. But in my case it is not work as i didn’t use anything else except SwipeableListItem
. could you help me to finger out what is the issue with code
Closing as the usage is incorrect - it should be:
<SwipeableList>
<SwipeableListItem>
Item content
</SwipeableListItem>
</SwipeableList>;
and not:
<SwipeableList>
<Draggable>
<div>
<SwipeableListItem
please check the readme file.
Describe the bug I'm trying to create a lit with
react-swipeable-list
andreact-awesome-dnd
I'm under the impression both should play nice together, but when I swipe to see the action, the action do not remain, the actions colpast again. If I removereact-awesome-dnd
it works.Expected behavior When I swipe I would expect the actions to remain so I can touch any of them
Desktop (please complete the following information):