-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to click / touch an opened item, toggle all other items to close, including itself #37
Comments
Hi, Please describe it in more detail - do you mean that if user will open list item and then tries to open another one then the first one should be closed automatically? |
Screen.Recording.2023-04-23.at.16.38.41.movLike this, always open one at a time, and can be closed by clicking |
Hi @marekrozmus, |
@edwardfxiao let me know if the fix is OK for you. Just released 1.8.0 :) |
@marekrozmus On |
Okay, I think there are three things that need to be improved: 1, When there is only one 2, When there are multiple 3, Allow the user to click anywhere else on the page to close (like the video shows) The second issue may be outside your scope, though. In my case <SwipeableList>
{R.filter(i => R.prop('pinned')(i) === true)(conversations).map((item, key)=>{
return <SwipeableListItem key={key}>{item.name}</SwipeableListItem>
})}
</SwipeableList>
<SwipeableList>
{R.filter(i => R.prop('pinned')(i) === false)(conversations).map((item, key)=>{
return <SwipeableListItem key={key}>{item.name}</SwipeableListItem>
})}
</SwipeableList> Untitled2.mov |
Alternatively, would it be possible for you to provide a reset API that would allow us to manually close the This could be very useful for users who want to leave multiple items open at once, or for those who prefer to have only one item open at a time. |
Hi there,
1, In many cases, users are only allowed to select actions for a single item at a time. This prevents multiple items from showing actions simultaneously. (Should be closed automatically first one if user tries to open another one)
2, Asking the user to swipe to close an action can be a poor user experience. (Also allowing close by clicking)
Is there any way to improve these?
The text was updated successfully, but these errors were encountered: