-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[ListItem] rightIconButton doesn't prevent ripple on mobile #3556
Comments
Hi @EloB I tried to reproduce this in desktop using step you described but for me it's working perfectly fine. I'm using Chrome (Version: 48.0.2564.116) Here's the Mouse Click example: |
@heetvachhani What happens when you use chrome dev tools to simulate a touch? That reproduces it for me: |
Yes that reproduced for me 😁 |
@EloB : So, I tried reproducing the issue you are having on the docs page and I was able to do it on the nested list example which looks similar to your use case. I noticed the nested list-item did not let the touch ripple bubble up to the list-item parent. However the parent list-item labelled "inbox" behaved in the same way as your use-case. I added the prop Let me know, if this solves the problem. @nathanmarks : Is this an bug in our docs page? I see it as more of a use-case thing. |
I need to be able to click the list and also the rightButtonElement. So disable it will only make the rightButtonElement to work right? |
I think the way ListItem triggers the ripples are kind of broken. On a phone it triggers the ripples everytime you touch them. Very annoying when you scroll the page. Maybe this is another bug. Should I make another issue with that? Try this on a phone and scroll down the page: https://mtg.zone/#/sets |
@EloB : Yes. I did enable touch on devtools. Thank you for explaining your use-case. Also, i checked your website on phone. The list-item, is not clickable when I tried it through my phone. only the right-icon is clickable. |
By clicking on the ListItem it should decrease the left avatar number by one. |
Doesn't work in mobile chrome browser. It closes the side nav when I click on the list-item. Anyway, Let me see what I can do. |
Oh that's because its the last item if you have more than one card in the deck. Then you will see that is decreases. |
@EloB : Yeah I did see that. Thanks! |
Thanks for solving this issue! 👍 |
@EloB : No worries man. Happy to help! Best of luck with your project. |
It works in desktop without the ripple.
Here is an example:
Touch tap
Mouse click
The text was updated successfully, but these errors were encountered: